deps-parse

3.0.0 • Public • Published

deps-parse

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Parse dependencies of JS, HTML, and CSS files with file system caching. This makes sure large files do not take an excessive amount of time to parse, but it skips parsing files above a specific byte length.

API

Child Processes

You can parse modules in a separate process to avoid blocking the main event loop. This is done through slave. To do so, simply var parse = require('slave/master') instead of require('slave'). To add more child processes, do parse.fork().

var dependencies = parse(type, string)

var dependencies = parse.html(string)

var dependencies = parse.css(string)

var dependencies = parse.js(string)

Package Sidebar

Install

npm i deps-parse

Weekly Downloads

3

Version

3.0.0

License

MIT

Last publish

Collaborators

  • jongleberry