文件操作 - index.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/index.js
编辑文件内容
'use strict' const cacache = require('cacache') const Fetcher = require('../../fetch') const regManifest = require('./manifest') const regPackument = require('./packument') const regTarball = require('./tarball') const fetchRegistry = module.exports = Object.create(null) Fetcher.impl(fetchRegistry, { packument (spec, opts) { return regPackument(spec, opts) }, manifest (spec, opts) { return regManifest(spec, opts) }, tarball (spec, opts) { return regTarball(spec, opts) }, fromManifest (manifest, spec, opts) { return regTarball.fromManifest(manifest, spec, opts) }, clearMemoized () { cacache.clearMemoized() regPackument.clearMemoized() } })
修改文件时间
将文件时间修改为当前时间的前一年
删除文件