{"id":15290176,"url":"https://github.com/npm/libnpmconfig","last_synced_at":"2025-10-07T03:31:29.620Z","repository":{"id":51673458,"uuid":"156104684","full_name":"npm/libnpmconfig","owner":"npm","description":"Standalone library for reading/writing/managing npm configurations","archived":true,"fork":false,"pushed_at":"2021-05-10T18:54:43.000Z","size":80,"stargazers_count":1,"open_issues_count":2,"forks_count":5,"subscribers_count":10,"default_branch":"latest","last_synced_at":"2024-09-27T11:27:39.806Z","etag":null,"topics":["config","configuration","library","npm"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/libnpmconfig","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-04T16:59:47.000Z","updated_at":"2023-01-28T08:16:43.000Z","dependencies_parsed_at":"2022-09-05T16:51:47.245Z","dependency_job_id":null,"html_url":"https://github.com/npm/libnpmconfig","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flibnpmconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flibnpmconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flibnpmconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flibnpmconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/libnpmconfig/tar.gz/refs/heads/latest","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877414,"owners_count":16554881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","configuration","library","npm"],"created_at":"2024-09-30T16:06:05.373Z","updated_at":"2025-10-07T03:31:24.333Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libnpmconfig\n\n[![npm version](https://img.shields.io/npm/v/libnpmconfig.svg)](https://npm.im/libnpmconfig)\n[![license](https://img.shields.io/npm/l/libnpmconfig.svg)](https://npm.im/libnpmconfig)\n[![Travis](https://img.shields.io/travis/npm/libnpmconfig.svg)](https://travis-ci.org/npm/libnpmconfig)\n[![Coverage Status](https://coveralls.io/repos/github/npm/libnpmconfig/badge.svg?branch=latest)](https://coveralls.io/github/npm/libnpmconfig?branch=latest)\n\n[`libnpmconfig`](https://github.com/npm/libnpmconfig) is a Node.js library for\nprogrammatically managing npm's configuration files and data.\n\n## Table of Contents\n\n* [Example](#example)\n* [Install](#install)\n* [Contributing](#contributing)\n* [API](#api)\n\n## Example\n\n```js\nconst config = require('libnpmconfig')\n\nconsole.log('configured registry:', config.read({\n  registry: 'https://default.registry/'\n}))\n// =\u003e configured registry: https://registry.npmjs.org\n```\n\n## Install\n\n`$ npm install libnpmconfig`\n\n### Contributing\n\nThe npm team enthusiastically welcomes contributions and project participation!\nThere's a bunch of things you can do if you want to contribute! The\n[Contributor Guide](https://github.com/npm/cli/blob/latest/CONTRIBUTING.md)\noutlines the process for community interaction and contribution. Please don't\nhesitate to jump in if you'd like to, or even ask us questions if something\nisn't clear.\n\nAll participants and maintainers in this project are expected to follow the\n[npm Code of Conduct](https://www.npmjs.com/policies/conduct), and just\ngenerally be excellent to each other.\n\nPlease refer to the [Changelog](CHANGELOG.md) for project history details, too.\n\nHappy hacking!\n\n### API\n\n##### \u003ca name=\"read\"\u003e\u003c/a\u003e `\u003e read(cliOpts, builtinOpts)`\n\nReads configurations from the filesystem and the env and returns a\n[`figgy-pudding`](https://npm.im/figgy-pudding) object with the configuration\nvalues.\n\nIf `cliOpts` is provided, it will be merged with the returned config pudding,\nshadowing any read values. These are intended as CLI-provided options. Do your\nown `process.argv` parsing, though.\n\nIf `builtinOpts.cwd` is provided, it will be used instead of `process.cwd()` as\nthe starting point for config searching.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Flibnpmconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Flibnpmconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Flibnpmconfig/lists"}