0.1.3 • Published 12 months ago

@semrel-extra/npmrc v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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

0.1.3

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.0

1 year ago