0.0.5 • Published 9 years ago

lsrequire v0.0.5

Weekly downloads
9
License
MIT
Repository
github
Last release
9 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

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago