【文件属性】:
文件名称:registry-url:获取设置的npm注册表URL
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-29 07:38:46
JavaScript
注册表网址
获取设置的npm注册表URL
通常是https://registry.npmjs.org/ ,但是它是可。
如果您对npm注册表进行任何操作,请使用此选项,因为用户希望它使用其配置的注册表。
安装
$ npm install registry-url
用法
# .npmrc
registry = ' https://custom-registry.com/ '
import registryUrl from 'registry-url' ;
console . log ( registryUrl ( ) ) ;
//=> 'https://custom-registry.com/'
它还可以检索与关联的注册表URL。
# .npmrc
@myco: registry = ' https://custom-registry.com/ '
import registry
【文件预览】:
registry-url-main
----index.test-d.ts(148B)
----.gitattributes(19B)
----.github()
--------funding.yml(48B)
--------security.md(179B)
--------workflows()
----test.js(2KB)
----license(1KB)
----index.d.ts(706B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(275B)
----readme.md(1KB)
----package.json(765B)