aboutsummaryrefslogtreecommitdiff
path: root/node_modules/registry-auth-token/README.md
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
committerMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
commitb22f6770c8bd084d66950655203c61dd701b3d90 (patch)
tree873d7fb19584ec2709b95cc1ca05a1fc7cfd0fc4 /node_modules/registry-auth-token/README.md
parent383285ecd5292bf9a825e05904955b937de84cc9 (diff)
downloadequestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.gz
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.bz2
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.zip
Remove node_modules
Diffstat (limited to 'node_modules/registry-auth-token/README.md')
-rw-r--r--node_modules/registry-auth-token/README.md65
1 files changed, 0 insertions, 65 deletions
diff --git a/node_modules/registry-auth-token/README.md b/node_modules/registry-auth-token/README.md
deleted file mode 100644
index 084dc0a..0000000
--- a/node_modules/registry-auth-token/README.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# registry-auth-token
-
-[![npm version](http://img.shields.io/npm/v/registry-auth-token.svg?style=flat-square)](http://browsenpm.org/package/registry-auth-token)[![Build Status](http://img.shields.io/travis/rexxars/registry-auth-token/main.svg?style=flat-square)](https://travis-ci.org/rexxars/registry-auth-token)
-
-Get the auth token set for an npm registry from `.npmrc`. Also allows fetching the configured registry URL for a given npm scope.
-
-## Installing
-
-```
-npm install --save registry-auth-token
-```
-
-## Usage
-
-Returns an object containing `token` and `type`, or `undefined` if no token can be found. `type` can be either `Bearer` or `Basic`.
-
-```js
-var getAuthToken = require('registry-auth-token')
-var getRegistryUrl = require('registry-auth-token/registry-url')
-
-// Get auth token and type for default `registry` set in `.npmrc`
-console.log(getAuthToken()) // {token: 'someToken', type: 'Bearer'}
-
-// Get auth token for a specific registry URL
-console.log(getAuthToken('//registry.foo.bar'))
-
-// Find the registry auth token for a given URL (with deep path):
-// If registry is at `//some.host/registry`
-// URL passed is `//some.host/registry/deep/path`
-// Will find token the closest matching path; `//some.host/registry`
-console.log(getAuthToken('//some.host/registry/deep/path', {recursive: true}))
-
-// Find the configured registry url for scope `@foobar`.
-// Falls back to the global registry if not defined.
-console.log(getRegistryUrl('@foobar'))
-
-// Use the npm config that is passed in
-console.log(getRegistryUrl('http://registry.foobar.eu/', {
- npmrc: {
- 'registry': 'http://registry.foobar.eu/',
- '//registry.foobar.eu/:_authToken': 'qar'
- }
-}))
-```
-
-## Return value
-
-```js
-// If auth info can be found:
-{token: 'someToken', type: 'Bearer'}
-
-// Or:
-{token: 'someOtherToken', type: 'Basic'}
-
-// Or, if nothing is found:
-undefined
-```
-
-## Security
-
-Please be careful when using this. Leaking your auth token is dangerous.
-
-## License
-
-MIT-licensed. See LICENSE.