method-names
Version:
Returns an array of names from a module. Includes all enumerable properties with function values, own and inherited.
48 lines (31 loc) • 1.44 kB
Markdown
# method-names [](http://badge.fury.io/js/method-names) [](https://travis-ci.org/jonschlinkert/method-names)
> Returns an array of names from a module. Includes all enumerable properties with function values, own and inherited.
Based on the `_.functions` method from Lo-Dash.
## Install with [npm](npmjs.org)
```bash
npm i method-names --save
```
## Usage
```js
var methods = require('method-names');
methods(require('verb'));
//=> ['set', 'get', 'extend', 'create', 'render', ...]
```
## Related
* [list-methods](https://github.com/jonschlinkert/list-methods): Easily generate a JSON or markdown list (sorted array) of property names of all enumerable properties, own and inherited, of objects that have function values.
## Running tests
Install dev dependencies.
```bash
npm i -d && npm test
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/method-names/issues)
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 21, 2015._