node-lazyloader

1.0.1 • Public • Published

node-lazyloader

A dynamic file loader for NodeJS, loads files (via require) if they are in a directory

Install

npm install lazyloader

How to Use

var LazyLoader = require('node-lazyloader');
 
var lazy = new LazyLoader({
    debug: true, //gives you more verbose output
    filter: function(file) {
        //compare a file to block out
        if ('donotincludefile.js' === file) {
            return false;
        }
        return true;
    }
});
 
var allFiles = lazy.fetch('/path/to/node/files');

Readme

Keywords

Package Sidebar

Install

npm i node-lazyloader

Weekly Downloads

23

Version

1.0.1

License

MIT

Last publish

Collaborators

  • evelynli
  • adityachaudhari1412
  • jay-anderson
  • satishns
  • frank.torres
  • aayush1999
  • lrxdtc
  • abdallahhwishel
  • kendrick-mcadams
  • noahwebber
  • srisandhyamaddula
  • artem.polupan.pmg
  • jena
  • andrethio
  • vijayakumarchandrasekar
  • adamdutton08
  • tani-shah
  • jwzhang
  • jrughani
  • sirach99
  • aliciazavala
  • yashodhara
  • keerthi_kamarthi
  • nihitparikh
  • jzhang502
  • jgmpmg
  • psmith22
  • d3vj3rry
  • chrisguitarguy
  • chrisalvares
  • pmgbot
  • emilysnothere
  • eawooten
  • jamiebarbosa
  • ericelsken
  • phildier
  • becconk
  • skyemck
  • siephen
  • ian-evidente
  • hanakim778
  • talinhall
  • niclee521
  • abdullah.alhamoud
  • shlokkhetan
  • harshithamandru
  • diego.pozo