Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @artcommacode/semify with all npm packages installed. Try it out:

var semify = require("@artcommacode/semify")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@artcommacode/semify v1.0.4

A browserify transform for adding semicolons

semify

A browserify transform for adding semicolons.

Installation

$ npm install --save @artcommacode/semify

Note: You'll need to add the -g flag if you're not using @artcommacode/semify from within an NPM script.

Usage

From the command-line:

$ browserify -t @artcommacode/semify main.js

or with the API:

var b = require('browserify')
var semify = require('@artcommacode/semify')

b.transform('semify')

For further information see the browserify handbook section on transforms.

Why

I'd rather not use semicolons but browserify would prefer I did. This small transform keeps us both happy by piggy-backing onto the hard work done by semi.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free