smartdrive/node_modules/shelljs/global.js

11 lines
295 B
JavaScript
Raw Normal View History

2016-06-17 22:24:31 +00:00
var shell = require('./shell.js');
var common = require('./src/common');
for (var cmd in shell)
global[cmd] = shell[cmd];
var _to = require('./src/to');
String.prototype.to = common.wrap('to', _to);
var _toEnd = require('./src/toEnd');
String.prototype.toEnd = common.wrap('toEnd', _toEnd);