@semrel-extra/npmrc
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

dotnpmrc

CI Maintainability Test Coverage

.npmrc formatter

Usage

import {formatNpmrc} from 'dotnpmrc'

const contents = formatNpmrc({
  format: 'npm9',
  scopes: {
    example: {
      registry: 'https://npm-registry.example.com/',
      auth: 'base64-of-username-and-password',
      authToken: 'npmToken.bearer',
      alwaysAuth: true,
    }
  },
  root: {
    registry: 'https://registry.yarnpkg.com'
  }
})

await fs.writeFile('.npmrc', contents, {encoding: 'utf8'})

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @semrel-extra/npmrc

Weekly Downloads

6

Version

0.1.3

License

MIT

Unpacked Size

9.31 kB

Total Files

8

Last publish

Collaborators

  • dhoulb
  • semrel-extra-bot
  • antongolub