method-names
Returns an array of names from a module. Includes all enumerable properties with function values, own and inherited.
Last updated 10 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install method-names 
SYNC missed versions from official npm registry.

method-names NPM version Build Status

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

npm i method-names --save

Usage

var methods = require('method-names');

methods(require('verb'));
//=> ['set', 'get', 'extend', 'create', 'render', ...]

Related

  • 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.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 21, 2015.

Current Tags

  • 0.2.0                                ...           latest (10 years ago)

3 Versions

  • 0.2.0                                ...           10 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE