0.0.5 • Published 10 years ago

lsrequire v0.0.5

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

#lsrequire

Removes the need to reference files using relative paths when using require

Usage

global.lsrequire = require('lsrequire').init({
  prodSourceRoot:  "./app",
  testSourceRoot:  "./spec",
  requireSymbol:  "$",
});

From your source, where $SomeFile is a file named SomeFile.js anywhere in your prod or test source roots

lsrequire('$SomeFile');

Move and refactor as you please, without having to worry about changing all your paths! Yay!

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago