1.0.0 • Published 9 years ago

find-module-deps v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

find-module-deps Build Status

Find all the dependencies of a module

Install

$ npm install --save find-module-deps

Usage

var findModuleDeps = require('find-module-deps');

findModuleDeps('require("foo");require("foo")');
//=> ['foo']

API

findModuleDeps(code, options) -> array[string]

code

Required
Type: string

The code to search.

options
  • word
    • type: string
    • default: 'require'

The function that imports dependencies.

License

MIT © Ben Drucker