🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

es6-node-elevator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-node-elevator

Elevate node modules for easy ES6 import.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

es6-node-elevator

Elevate node modules for easy ES6 import.

Creates entry points for main files for all modules e.g. under node_modules.

Example:

main fileentry point
node_modules/lodash/index.jsnode_modules/lodash.js
node_modules/glob/glob.jsnode_modules/glob.js

Now, with ES6 imports, you can simply:

import _ from 'node_modules/lodash.js';

Install

Install via npm:

npm i --save -g es6-node-elevator

Use

Command line:

es6-node-elevator

Or programmatically:

var elevator = require('es6-node-elevator');

elevator();

Options

namedescriptiondefault
dirDirectory to scrape for modules (directories containing package.json).'node_modules'
outDirectory in which to write entry point files (e.g. lodash.js).'node_modules'

Keywords

es6

FAQs

Package last updated on 10 Apr 2019

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