magnet-uri
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package