🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

parse-npm-tarball-url

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-npm-tarball-url

Parse a tarball URL hosted in the npm registry

3.0.0
latest
Source
npm
Version published
Weekly downloads
92K
1.55%
Maintainers
1
Weekly downloads
 
Created
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

npm

FAQs

Package last updated on 27 May 2019

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