Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

registry-auth-token

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

registry-auth-token

Get the auth token set for an npm registry (if any)

  • 5.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11M
decreased by-2.68%
Maintainers
3
Weekly downloads
 
Created

What is registry-auth-token?

The registry-auth-token npm package is designed to retrieve authentication tokens for accessing private npm registries. It parses npm configuration files to extract authentication information, which can be useful for automated scripts or tools that interact with npm registries.

What are registry-auth-token's main functionalities?

Retrieve authentication token

This feature allows the retrieval of an authentication token from the user's npm configuration. The token can then be used for authenticated operations with npm registries.

const getAuthToken = require('registry-auth-token');

const token = getAuthToken();
console.log(token);

Retrieve token with options

This feature extends the basic token retrieval by allowing options such as 'recursive' to be set, which controls how the npm configuration is parsed for authentication tokens.

const getAuthToken = require('registry-auth-token');

const options = { recursive: true };
const token = getAuthToken(options);
console.log(token);

Other packages similar to registry-auth-token

Keywords

FAQs

Package last updated on 27 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc