Socket
Socket
Sign inDemoInstall

magnet-uri

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magnet-uri - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "magnet-uri",
"description": "Parse a magnet URI and return an object of keys/values",
"version": "2.0.0",
"version": "2.0.1",
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)",

@@ -6,0 +6,0 @@ "bugs": {

@@ -24,3 +24,3 @@ # magnet-uri [![travis](https://img.shields.io/travis/feross/magnet-uri.svg)](https://travis-ci.org/feross/magnet-uri) [![npm](https://img.shields.io/npm/v/magnet-uri.svg)](https://npmjs.org/package/magnet-uri) [![downloads](https://img.shields.io/npm/dm/magnet-uri.svg)](https://npmjs.org/package/magnet-uri) [![gittip](https://img.shields.io/gittip/feross.svg)](https://www.gittip.com/feross/)

var parsed = magnet(uri)
console.log(parsed.dn) // "Leaves+of+Grass+by+Walt+Whitman.epub"
console.log(parsed.dn) // "Leaves of Grass by Walt Whitman.epub"
console.log(parsed.infoHash) // "d2474e86c95b19b8bcfdb92bc12c9d44667cfa36"

@@ -27,0 +27,0 @@

@@ -74,3 +74,3 @@ var magnet = require('../')

test('extracts 20-char hex BitTorrent info_hash', function (t) {
test('extracts 40-char hex BitTorrent info_hash', function (t) {
result = magnet('magnet:?xt=urn:btih:aad050ee1bb22e196939547b134535824dabf0ce')

@@ -77,0 +77,0 @@ t.equal(result.infoHash, 'aad050ee1bb22e196939547b134535824dabf0ce')

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