文件操作 - check-bins.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/node_modules/npm/node_modules/bin-links/lib/check-bins.js
编辑文件内容
const checkBin = require('./check-bin.js') const normalize = require('npm-normalize-package-bin') const checkBins = async ({ pkg, path, top, global, force }) => { // always ok to clobber when forced // always ok to clobber local bins, or when forced if (force || !global || !top) { return } pkg = normalize(pkg) if (!pkg.bin) { return } await Promise.all(Object.keys(pkg.bin) .map(bin => checkBin({ bin, path, top, global, force }))) } module.exports = checkBins
修改文件时间
将文件时间修改为当前时间的前一年
删除文件