export-files
node.js utility for exporting a directory of files as modules.
Last updated 4 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install export-files 
SYNC missed versions from official npm registry.

export-files NPM version Build Status

node.js utility for exporting a directory of files as modules.

(TOC generated by verb using markdown-toc)

Install

Install with npm:

$ npm i export-files --save

Usage

Specify the directory with files to export:

module.exports = require('export-files')(__dirname);
//=> {a: [function], b: [function], c: [function]}

Changes

v0.2.0 - breaking changes

  • Non-javascript files are no longer handled. That functionality was moved to to-exports. This decision was made to keep this lib as fast as possible.
  • This library no longer takes any arguments besides the directory to read.

Related projects

You might also be interested in these projects:

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2016 Jon Schlinkert Released under the MIT license.


This file was generated by verb on January 29, 2016.

Current Tags

  • 1.2.0-beta                                ...           beta (5 years ago)
  • 2.1.1                                ...           latest (4 years ago)

14 Versions

  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.2.0-beta                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.4                                ...           6 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.0                                ...           6 years ago

Copyright 2014 - 2016 © taobao.org |