Socket
Book a DemoInstallSign in
Socket

method-names

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

method-names

Returns an array of names from a module. Includes all enumerable properties with function values, own and inherited.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

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', ...]
  • 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.

Keywords

enumerable

FAQs

Package last updated on 21 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts