global.js 353 B

123456789101112
  1. /* eslint no-extend-native: 0 */
  2. var shell = require('./shell.js');
  3. var common = require('./src/common');
  4. Object.keys(shell).forEach(function (cmd) {
  5. global[cmd] = shell[cmd];
  6. });
  7. var _to = require('./src/to');
  8. String.prototype.to = common.wrap('to', _to);
  9. var _toEnd = require('./src/toEnd');
  10. String.prototype.toEnd = common.wrap('toEnd', _toEnd);