0.0.1 • Published 10 years ago

scrawl-package v0.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

scrawl-package

Parse package info and inline documentation into JSON using scrawl.

Usage

$ npm install --save-dev scrawl-package

Then, point it at files in the current directory:

var info = require('scrawlProject')({
  match: [
    'index.js',
    'src/**/*.js'
  ]
});

Options:

  • match - a string or array of strings with a glob pattern of files to be parsed

  • dir - the package directory (optional; defaults to current directory)

  • transform - a transformation function to apply to each scrawl comment (optional)

Testing

$ npm test

License

MIT