Socket
Book a DemoInstallSign in
Socket

ascjsify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ascjsify

fast browserify transform for ES modules, and nothing else--using @WebReflection `ascjs`

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ascjsify

fast browserify transform for ES modules, and nothing else--using @WebReflection ascjs

npm travis standard

Install

npm install ascjsify

Usage

browserify app.js -t ascjsify
browserify app.js -g ascjsify # global
var ascjsify = require('ascjsify')
var b = browserify()
b.transform(ascjsify, { global: true })

global: true is optional, but useful if dependencies may be using ES modules already. ascjsify only runs on files that look like they may contain import or export statements, so it won't slow everything down when run globally.

Input

import { EventEmitter } from 'events'
export default new EventEmitter()

Output

const { EventEmitter } = require('events')
Object.defineProperty(exports, '__esModule', {value: true}).default = new EventEmitter()

License

Apache-2.0

Keywords

ascjs

FAQs

Package last updated on 15 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts