npm view [<package-spec>] [<field>[.subfield]...] aliases: info, show, v # 描述此命令显示有关包的数据并将其打印到标准输出。例如,connect 要从注册表查看有关包的信息,你可以运行:npm view connect 如果未指定,默认版本是 lastest。可以在包描述符之后指定字段名称。例如,
npm view connectThe default version is "latest" if unspecified.Field names can be specified after the package descriptor. For example, to show the dependencies of the ronn package at version 0.3.5, you could do the following:npm view ronn@0.3.5 dependencies...
可以通过npm view \<package-name>命令查询包名是否已存在,如果存在就会返回该包的相关信息。 比如查询vue这个包名,会返回它的版本号、许可证、描述等信息 npm view vue vue@3.2.33 | MIT |deps:5|versions:372 The progressive JavaScript framework for building modern web UI. https://github.com/vuejs/co...
npm view ronn@0.3.5 dependencies You can view child fields by separating them with a period. To view the git repository URL for the latest version of npm, you could do this: npm view npm repository.url This makes it easy to view information about a dependency with a bit of shell script...
npm install view What is this project? Theviewmodule provides a simpleView-Presenterpattern for creating views using a template and a single transformational JavaScript method. The template is the "View", the single JavaScript method is the "Presenter". ...
npm view [<@scope>/]<name>[@<version>] [<field>[.<subfield>]...] aliases: info, show, v Description This command shows data about a package and prints it to the stream referenced by theoutfdconfig, which defaults to stdout.
本文参考了NPM中文文档写作而成的 npm view功能 查看注册表信息 npm view使用 {代码...} npm view说明 此命令显示有关程序包的数据,并将其打印到outfd配置引...
npm view webpack versions、npm view less-loader versions查看版本 npm i less-loader@7 这样默认安装7版本里面最新版 npm i nanoid 一个简易的uuid生成器 import {nanoid} from 'nanoid' const obj = {id: nanoid(), title: e.target.value, done: false} ...
于是乎,你去官方文档查了下这个命令,原来npm view xx versions是查询xx包所有可用版本。为了不拘泥于npm run start与npm run build这两行命令,于是笔者总结了这篇很深度,很广度的npm命令大全,希望你能在你实际项目中能用得上。 正文开始... npm init ...
view-win 视窗显示 usage 第一步,安装 view-win npm i view-win 第二步,在指定要使用的文件内导入 import ViewWin from 'view-win' 第三步,初始化 初始化动作必须保证当前 target 目标已存在(可访问) const vw = new ViewWin({ target: element, direction: 'x', vmid: true }) 第四步,销毁...