Skip to content

rjz/scrawl-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scrawl-package

Generate npm package reference using scrawl.

Usage

$ npm install --save-dev scrawl-package

Then, point it at files in the current directory:

var packageInfo = 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

About

Generate npm package reference using scrawl

Resources

License

Stars

Watchers

Forks

Packages

No packages published