From 2dcf8517098a52a06329b859d190ca473e0741d1 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 6 Sep 2018 15:19:11 -0400 Subject: [PATCH] update references to swarmjs --- README.md | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 80eda66..a4a24e8 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ This library can be used to upload/download files to Swarm via https://swarm-gat ## Library usage ```js -const swarmgw = require('swarmgw')(/* opts */) +const swarmjs = require('swarmjs')(/* opts */) // This should output the hash: 931cc5a6bd57724ffd1adefc0ea6b4f0235497fca9e4f9ae4029476bcb51a8c6 -swarmgw.put('Hello from swarmgw!', function (err, ret) { +swarmjs.put('Hello from swarmjs!', function (err, ret) { if (err) { console.log('Failed to upload: ' + err) } else { @@ -20,8 +20,8 @@ swarmgw.put('Hello from swarmgw!', function (err, ret) { } }) -// This should output the content: Hello from swarmgw! -swarmgw.get('bzz-raw://931cc5a6bd57724ffd1adefc0ea6b4f0235497fca9e4f9ae4029476bcb51a8c6', function (err, ret) { +// This should output the content: Hello from swarmjs! +swarmjs.get('bzz-raw://931cc5a6bd57724ffd1adefc0ea6b4f0235497fca9e4f9ae4029476bcb51a8c6', function (err, ret) { if (err) { abort('Failed to download: ' + err) } else { @@ -36,7 +36,7 @@ The `opts` above is a map of options: ## CLI usage -It can also be used via the command line if installed globally (`npm install -g swarmgw`). To see the help: `swarmgw --help`. +It can also be used via the command line if installed globally (`npm install -g swarmjs`). To see the help: `swarmjs --help`. ## License diff --git a/package.json b/package.json index 58ecc77..e8c1fb2 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "bin": { - "swarmgw": "./swarmgw" + "swarmjs": "./swarmjs" }, "dependencies": { "klaw": "^3.0.0",