
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
list-methods
Advanced tools
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.

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.
Install with npm:
npm i -g list-methods
Run the methods command without any arguments and a markdown file will be generated for index.js, or the first javascript file found in the current directory.
If you want to specify the source file to read, or the destination to write to, you can use this format:
methods [src] [dest]
Or:
-s | --src: reads the specified source file-d | --dest: the destination path and file to write. note that extension is significantDest extension:
.yml: generates a YAML file.md: generates a markdown fileMethods uses Lo-Dash templates, so they're super fast and easy to extend. There are a couple of ways you can specify the template to use.
Either as a third argument:
methods [src] [dest] [template]
Or with -t or --template:
methods -t docs
There are three built-in templates:
list: generates a simple, bullet list of methodsdocs: generates a formatted markdown file, giving each method its own section with starter content for type and default, etc.yaml: similar to docs, but outputs YAML. this is useful if you want to update and extend this file with other tools, like Verb or AssembleThe only context passed to the templates is the array of properties generated. Example:
module.exports = [
'# <%= data.name %> properties\n\n',
'<% _.forEach(data, function(fn) { %>',
'* <%- fn %>\n',
'<% }); %>'
].join('');
You can either specify the filepath to the custom template, or the name of a npm module that is installed locally, and methods will try to use it:
methods -t my-template
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert Released under the MIT license
This file was generated by verb-cli on March 25, 2014.
FAQs
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.
The npm package list-methods receives a total of 16 weekly downloads. As such, list-methods popularity was classified as not popular.
We found that list-methods demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.