This package has been deprecated

Author message:

Deprecated in favor of Babel module transforms and experimental native transforms

module-export

1.0.2 • Public • Published

module-export

A module exporter for Node v4+

npm Version Travis CI Dependency Status Downloads License (MIT) XO Code Style

Contents

Usage

In Progress... Basic usage:

const moduleExport = require('module-export')(module);

moduleExport(() => { ... }); // Export a function

moduleExport({ ... }); // Export an object

class MyClass { ... }
moduleExport(MyClass); // Export a class

Testing

module-export uses xo (with slightly customized configuration) for linting, ava for unit testing, and nyc for coverage.

Test Scripts

  • npm run lint: Uses xo to lint the main source file, index.js.
  • npm run test-lint: Uses xo to lint the test source files, located in test/.
  • npm run unit: Executes test-lint and runs the ava unit tests using nyc for coverage.
  • npm report: Generates an HTML coverage report from nyc.
  • npm run test: Executes lint, unit and report in that order.

API

In Progress...

Readme

Keywords

Package Sidebar

Install

npm i module-export

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • pandacoder