2.0.1 • Published 8 years ago

import-list-from-string v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

import-list-from-string

NPM version Build Status Coveralls Status Dependency Status

get list of es2015 imports from string

Install

npm install --save import-list-from-string

Usage

import importList from 'import-list-from-string';

const input = `
import out from 'out';
import local from './local';

console.log('yo');`;

importList(input); // ['out', './local']

API

importList(input)

input

Required
Type: String

Your stringified JavaScript code in es2015.

License

MIT © Vladimir Starkov

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago