Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/segment-boneyard/entry-points

Find a node module's possible entry points
https://github.com/segment-boneyard/entry-points

Last synced: about 7 hours ago
JSON representation

Find a node module's possible entry points

Awesome Lists containing this project

README

        

# entry-points

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

[![build status](https://secure.travis-ci.org/segmentio/entry-points.png)](http://travis-ci.org/segmentio/entry-points)

## Example

```js
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:

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

## Installation

```bash
$ npm install entry-points
```

## License

MIT