项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

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);