Socket
Socket
Sign inDemoInstall

create-torrent

Package Overview
Dependencies
Maintainers
8
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-torrent - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

4

package.json
{
"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 @@ ```

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