Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 0.1.3 to 0.1.4

40

package.json
{
"name": "magnet-uri",
"version": "0.1.3",
"version": "0.1.4",
"description": "Parse a magnet URI and return an object of keys/values",

@@ -14,33 +14,9 @@ "main": "index.js",

"files": "test/*.js",
"browsers": {
"ie": [
10
],
"firefox": [
5,
10,
15,
20,
25
],
"chrome": [
5,
10,
15,
20,
25,
30,
31,
"canary"
],
"safari": [
5.1,
6
],
"opera": [
12,
17,
"next"
]
}
"browsers": [
"ie/9..latest",
"chrome/25..latest",
"firefox/20..latest",
"safari/6..latest",
"opera/15.0..latest"
]
},

@@ -47,0 +23,0 @@ "repository": {

6

README.md

@@ -20,6 +20,6 @@ magnet-uri

// "Leaves of Grass" by Walt Whitman
var leavesOfGrass = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337'
var leaves = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337'
try {
var parse = magnet(leavesOfGrass)
var parse = magnet(leaves)
} catch (e) {

@@ -49,2 +49,2 @@ console.error('Invalid magnet URI')

Copyright (c) [Feross Aboukhadijeh](http://feross.org)
Copyright (c) [Feross Aboukhadijeh](http://feross.org)

Sorry, the diff of this file is not supported yet

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