Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromkevva/npm-conf

Get the npm config

License

NotificationsYou must be signed in to change notification settings

pnpm/npm-conf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get the npm config

Install

$ pnpm add @pnpm/npm-conf

Usage

constnpmConf=require('@pnpm/npm-conf');constconf=npmConf();conf.get('prefix')//=> //=> /Users/unicorn/.npm-packagesconf.get('registry')//=> https://registry.npmjs.org/

To get a list of all availablenpm config options:

$ npm config list --long

API

npmConf()

Returns thenpm config.

npmConf.defaults

Returns the defaultnpm config.

License

MIT ©Kevin Mårtensson

About

Get the npm config

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp