Skip to content

Commit

Permalink
publish npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
tunntun committed Oct 10, 2024
1 parent 1882266 commit 997d976
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A JavaScript library to generate a Merkle Tree using SHA-256. The library is des
```javascript
const leaves = ['leaf_1', 'leaf_2', 'leaf_3'];

const merkleTree = generateMerkleTree(leaves, (err, merkleTree) => {
generateMerkleTree(leaves, (err, merkleTree) => {
if (err)
return console.log(err);

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion merkleTree.test.js → index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const merkleTree = require('./merkleTree');
const merkleTree = require('./index');

describe.each([
{
Expand Down
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "merkle-tree",
"version": "1.0.0",
"name": "@node101/merkle-tree",
"version": "0.0.3",
"description": "",
"main": "merkleTree.js",
"main": "index.js",
"scripts": {
"test": "jest --coverage"
"test": "jest"
},
"keywords": [],
"author": "",
"author": "node101",
"license": "ISC",
"devDependencies": {
"jest": "^29.7.0"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 997d976

Please sign in to comment.