D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-nodejs10
/
lib
/
node_modules
/
npm
/
node_modules
/
libnpmconfig
/
Filename :
README.md
back
Copy
# libnpmconfig [](https://npm.im/libnpmconfig) [](https://npm.im/libnpmconfig) [](https://travis-ci.org/npm/libnpmconfig) [](https://ci.appveyor.com/project/zkat/libnpmconfig) [](https://coveralls.io/github/npm/libnpmconfig?branch=latest) [`libnpmconfig`](https://github.com/npm/libnpmconfig) is a Node.js library for programmatically managing npm's configuration files and data. ## Example ```js const config = require('libnpmconfig') console.log('configured registry:', config.read({ registry: 'https://default.registry/' })) // => configured registry: https://registry.npmjs.org ``` ## Install `$ npm install libnpmconfig` ## Table of Contents * [Example](#example) * [Install](#install) * [API](#api) ### API ##### <a name="read"></a> `> read(cliOpts, builtinOpts)` Reads configurations from the filesystem and the env and returns a [`figgy-pudding`](https://npm.im/figgy-pudding) object with the configuration values. If `cliOpts` is provided, it will be merged with the returned config pudding, shadowing any read values. These are intended as CLI-provided options. Do your own `process.argv` parsing, though. If `builtinOpts.cwd` is provided, it will be used instead of `process.cwd()` as the starting point for config searching.
Name
Size
Last Modified
Owner
Permissions
Actions
node_modules
Dir
September 13 2023 2:48:05
root
0755
CHANGELOG.md
1.27
KB
September 13 2023 2:48:05
root
0644
LICENSE
0.7
KB
September 13 2023 2:48:05
root
0644
PULL_REQUEST_TEMPLATE
0.179
KB
September 13 2023 2:48:05
root
0644
README.md
1.577
KB
September 13 2023 2:48:05
root
0644
index.js
2.798
KB
September 13 2023 2:48:05
root
0644
package.json
1.993
KB
September 13 2023 2:48:05
root
0644
2017 © D7net | D704T team