traverse-components

A helper to traverse a component's dependencies.

npm install traverse-components
2 downloads in the last week
4 downloads in the last month

traverse-components

A helper to traverse a component's dependencies.

Installation

$ npm install traverse-components

API

traverse(file, callback)

Traverse a component.json file's dependencies, calling callback with:

{
  json: { ... } // the dep's component.json
  file: '...' // the path to the component.json file
  parent: { ... } // the parent's component.json
}

License

MIT

npm loves you