Socket
Socket
Sign inDemoInstall

parse-npm-tarball-url

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parse-npm-tarball-url

Parse a tarball URL hosted in the npm registry


Version published
Weekly downloads
229K
decreased by-14.82%
Maintainers
1
Install size
72.8 kB
Created
Weekly downloads
 

Readme

Source

parse-npm-tarball-url

Build Status

Parse a tarball URL hosted in the npm registry

Installation

<pnpm|yarn|npm> add parse-npm-tarball-url

Usage

import parseNpmTarbalUrl from 'parse-npm-tarball-url'

const pkg = parseNpmTarbalUrl('http://registry.npmjs.org/foo/-/foo-1.0.0.tgz')

console.log(pkg)
// {
//   host: 'registry.npmjs.org',
//   name: 'foo',
//   version: '1.0.0'
// }
  • get-npm-tarball-url - Create the tarball URL of a npm package

License

MIT © Zoltan Kochan

Keywords

FAQs

Last updated on 27 May 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc