# local-or-home-npmrc

> Get the local npmrc with fallback to the global one that's in your home directory

Latest version **1.1.0** (published 2017-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install local-or-home-npmrc
pnpm add local-or-home-npmrc
yarn add local-or-home-npmrc
bun add local-or-home-npmrc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-07-22 |
| First published | 2017-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sven Lito |
| Maintainers | svnlto |
| Keywords | user, home, homedir, local, dir, npm, npmrc |

## Links

- npm: https://www.npmjs.com/package/local-or-home-npmrc
- Repository: https://github.com/svnlto/local-or-home-npmrc
- Homepage: https://github.com/svnlto/local-or-home-npmrc#readme
- Issues: https://github.com/svnlto/local-or-home-npmrc/issues
- npm.io page: https://npm.io/package/local-or-home-npmrc

## Dependencies (2)

- [pkg-dir](https://npm.io/package/pkg-dir.md) ^2.0.0
- [user-home](https://npm.io/package/user-home.md) ^2.0.0

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-07-22
- 1.0.0 — 2017-06-08

## README

# local-or-home-npmrc [![Build Status](https://travis-ci.org/svnlto/local-or-home-npmrc.svg?branch=master)](https://travis-ci.org/svnlto/local-or-home-npmrc)

[![Greenkeeper badge](https://badges.greenkeeper.io/svnlto/local-or-home-npmrc.svg)](https://greenkeeper.io/)

> Get the local npmrc with fallback to the global one that's in your home directory

Useful in cases where you prefer a local .npmrc file over a global one.


## Install

```
$ npm install --save local-or-home-npmrc
```


## Usage

```js
const npmrcLocation = require('local-or-home-npmrc');

console.log(npmrcLocation());
//=> '/Users/svenlito/code/project/.npmrc'

// And if there is no local .npmrc file:

const npmrcLocation = require('local-or-home-npmrc');

console.log(npmrcLocation());
//=> '/Users/svenlito/.npmrc'

```


## License

MIT © [Sven Lito](https://svenlito.com)

---
_Source: https://npm.io/package/local-or-home-npmrc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
