Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

exports-loader

0.7.0 • Public • Published

npm deps chat

Exports Loader

Exports variables from inside the file by appending `exports[...] = ...` statements..

Install

npm i exports-loader --save

Usage

require("exports-loader?file,parse=helpers.parse!./file.js");
// adds below code to the file's source:
//  exports["file"] = file;
//  exports["parse"] = helpers.parse;
 
require("exports-loader?file!./file.js");
// adds below code to the file's source:
//  module.exports = file;
 
require("exports-loader?[name]!./file.js");
// adds below code to the file's source:
//  module.exports = file;

Maintainers


Juho Vepsäläinen

Joshua Wiens

Kees Kluskens

Sean Larkin

Keywords

none

install

npm i exports-loader

Downloadsweekly downloads

319,638

version

0.7.0

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar