node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



emu is a tiny documentation generator. It does the following:

  • Parses stdin JavaScript
  • Extract block comments with double asterisks
  • Extract line comments with triple forward slash
  • Trims out the prefixed whitespace
  • Prints the results to stdout

That's it.


See the index.js file for an example of how emu generates its own


emu < index.js >

Now you can process the output with something like Pandoc.