UNPKG
warp.firstclass
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Allows to access all your modules directly like: require('moduleName') by creating symlinks
warp.firstclass
/
bin
/
warp.firstclass.js
8 lines
(7 loc)
•
236 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
#!/usr/bin/env node
var
firstClass =
require
(
'../'
);
// require('warp.firstclass');
var
dirToLink = process.
argv
[
2
];
if
(!dirToLink){
console
.
log
(
'USAGE: warp.firstclass [relative path to directory]'
); } firstClass.
link
(dirToLink);