This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ngoldman/v1.0.1
fix argument error in index
- Loading branch information
Showing
5 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# magnet-link changelog | ||
|
||
## [Unreleased][unreleased] | ||
## [1.0.1] - 2015-01-28 | ||
* use [standard](https://github.com/feross/standard) for npm test | ||
* use [fixpack](https://github.com/henrikjoreteg/fixpack) for true insanity | ||
* add `.travis.yml` | ||
* add tests | ||
* fix a rather serious error in index | ||
|
||
## 1.0.0 - 2015-01-23 | ||
* first! | ||
|
||
[Unreleased]: https://github.com/ngoldman/magnet-link/compare/v1.0.0...HEAD | ||
[1.0.1]: https://github.com/ngoldman/magnet-link/compare/v1.0.0...v1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# magnet-link | ||
|
||
![](https://travis-ci.org/ngoldman/magnet-link.svg) | ||
|
||
Get a magnet from a torrent file. | ||
|
||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var test = require('tape') | ||
var magnetLink = require('../') | ||
var url = 'http://torcache.net/torrent/EF330B39F4801D25B4245212E75A38634BFC856E.torrent' | ||
|
||
test('convert url to magnet link', function (t) { | ||
magnetLink(url, function (err, link) { | ||
if (err) { throw err } | ||
t.equal(link, 'magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e') | ||
t.end() | ||
}) | ||
}) |