Ai
6 Star 15 Fork 4

Gitee 极速下载/core-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/zloirock/core-js
克隆/下载
zxi.mjs 809 Bytes
一键复制 编辑 原始数据 按行查看 历史
const { dirname, resolve } = path;
const { pathExists } = fs;
const { cwd, env } = process;
const { _: args } = argv;
const { cyan, green } = chalk;
const CD = args.includes('cd');
const TIME = args.includes('time');
if (CD) args.splice(args.indexOf('cd'), 1);
if (TIME) args.splice(args.indexOf('time'), 1);
const FILE = args.shift();
const DIR = dirname(FILE);
$.verbose = true;
if (await pathExists(`${ DIR }/package.json`)) {
await $({ cwd: DIR })`npm install \
--no-audit \
--no-fund \
--lockfile-version=3 \
--loglevel=error \
--force \
`;
$.preferLocal = [resolve(DIR), cwd()];
}
if (CD) cd(DIR);
env.FORCE_COLOR = '1';
const start = Date.now();
await import(`../${ FILE }`);
if (TIME) echo(green(`\n${ FILE } took ${ cyan((Date.now() - start) / 1000) } seconds`));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/core-js.git
git@gitee.com:mirrors/core-js.git
mirrors
core-js
core-js
master

搜索帮助