create-torrent
Advanced tools
Comparing version 4.3.0 to 4.3.1
{ | ||
"name": "create-torrent", | ||
"description": "Create .torrent files", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"author": { | ||
@@ -28,3 +28,3 @@ "name": "WebTorrent, LLC", | ||
"run-parallel": "^1.0.0", | ||
"simple-sha1": "^2.0.0" | ||
"simple-sha1": "^3.0.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
@@ -29,6 +29,6 @@ # create-torrent [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] | ||
```js | ||
var createTorrent = require('create-torrent') | ||
var fs = require('fs') | ||
const createTorrent = require('create-torrent') | ||
const fs = require('fs') | ||
createTorrent('/path/to/folder', function (err, torrent) { | ||
createTorrent('/path/to/folder', (err, torrent) => { | ||
if (!err) { | ||
@@ -108,3 +108,3 @@ // `torrent` is a Buffer with the contents of the new .torrent file | ||
```js | ||
var buf = Buffer.from('Some file content') | ||
const buf = Buffer.from('Some file content') | ||
buf.name = 'Some file name' | ||
@@ -111,0 +111,0 @@ ``` |
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
+ Addedsimple-sha1@3.1.0(transitive)
- Removedsimple-sha1@2.1.2(transitive)
Updatedsimple-sha1@^3.0.0