Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/segment-boneyard/entry-points
- Owner: segment-boneyard
- Created: 2014-02-11T11:05:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-12T09:52:17.000Z (almost 11 years ago)
- Last Synced: 2024-10-06T16:06:10.451Z (about 1 month ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 3
- Watchers: 41
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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