1.2.1 • Published 10 years ago

entry-points v1.2.1

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

entry-points

Find a node module's possible entry points, like it's main script and bin scripts.

build status

Example

var find = require('entry-points');

find(__dirname, function(err, entries){
  console.log(entries);
  // ['index.js', 'bin/foo']
});

There's also a cli for quick inspection:

$ npm install -g entry-points
$ entry-points
index.js
bin/foo

Installation

$ npm install entry-points

License

MIT

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.0

10 years ago