🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

tarball-url-info

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tarball-url-info

take a tarball and return an object with tarball path, version, etc

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

tarball-url-info

take a tarball url and return an object with tarball path, version, etc

you get tarball urls from package metadata. curl https://registry.npmjs.org/lodash the obj.versions[version here].dist.tarball contains the tarball url.

if you find yourself with only a tarball url this library is for you.

var tarUrls = require('./')
var obj = ('http://registry.npmjs.org/lodash/-/lodash-4.5.0.tgz')
console.log(obj)

will output

{ file: 'lodash-4.5.0.tgz',
  name: 'lodash',
  scoped: false,
  version: '4.5.0',
  path: '/l/lodash/_attachments/lodash-4.5.0.tgz',
  externalPath: '/lodash/-/lodash-4.5.0.tgz',
  couchName: 'lodash' }

notes

  • tarball file name versions may not have clean semver. this takes care of cleaning the value for the version field.

Keywords

npm

FAQs

Package last updated on 17 Mar 2016

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