No description, website, or topics provided.
Pull request Compare This branch is 52 commits behind defunctzombie:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

required Build Status

identifies you what modules/files your script is using


var required = require('required');

required('/path/to/entry/source/file/js', function(err, deps) {
    // deps is an array of dependency objects
    // see the api section below for a description of the object


required(filename, cb)

Read filename and traverse all of dependencies.

The return result to callback is (err, details) where details is the array of dependencies for your entry file.

Each object in the array takes the following form:

    // the local name of the require
    // i.e. the string in your "require" statement
    id: 'local-require-name',

    native: // true if a native module (i.e. events, cryto, etc)

    // full path to the entry file for the module
    // doesn't exist for native modules
    filename: '/path/to/require/from/project/file.js',

    // an array of the dependencies for the file
    // each object is of the same form as described above
    // doesn't exist for native modules
    deps: [


npm install required


Run tests with npm test

Rebuild the golden files with npm run-script test-generate

Generate a coverage report (requires cover module) npm run-script coverage