1.0.1 • Published 7 years ago

esdoc-livescript v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

esdoc-node

npm.io

Usage

Get the package:

npm install esdoc-node

Add the following to your esdoc config file:

{
  "plugins": [{"name": "esdoc-node"}]
}

What it does

It converts the input of esdoc so that node.js' exports and module.exports becomes ES6's export.

This table shows the translation rules:

BeforeAfter
module.exports = ...;export default ...;
exports.Hello = class Hello { ... };export class Hello { ... };
exports.world = function world() { ... };export function world() { ... };
exports.value = value;export { value };
exports.value = ...;export let value = ...;