Get a list of all the named functions you defined in your prokect
Last updated 6 years ago by willyham .
Original npm · Tarball · package.json
$ cnpm install my-funcs 
SYNC missed versions from official npm registry.

my-funcs Travis branch Coverage Status

Get a list of all of the named functions you defined in your project

NOTE: This depends on deep-ast which uses synchronous I/O and should not be used at request time.


myFuncs : (filename: String) => (() => Array<String>|Error)

my-funcs exposes one function which takes a filename. the file is loaded and then a deep-ast is generated based on the file. The AST is then traversed and each named function is found and returned.


npm install --save my-funcs


Running on it's own source, my-funcs will generate a list of functions:

var myFuncs = require('myFuncs');

// ['myFuncs', 'getNames', 'findFunctions', 'findFunction', 'getFunctionNameFromNode']

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2017 © |