Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    entry-pointspublic

    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

    Keywords

    none

    install

    npm i entry-points

    Downloadslast 7 days

    1

    version

    1.2.1

    license

    none

    last publish

    collaborators

    • avatar