esdoc-livescript

1.0.1 • Public • Published

esdoc-node

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:

Before After
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 = ...;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i esdoc-livescript

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • geza