web3-token-helper 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +16 -0
  2. package/index.js +7 -0
  3. package/package.json +17 -0
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # Web3 Token Helper
2
+
3
+ Simple utilities for blockchain token applications.
4
+
5
+ ## Installation
6
+
7
+ npm install web3-token-helper
8
+
9
+ ## Usage
10
+
11
+ ```javascript
12
+ const {calculateFee} = require(
13
+ "web3-token-helper"
14
+ );
15
+
16
+ console.log(calculateFee(100,5));
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ function calculateFee(amount, percentage) {
2
+ return amount * percentage / 100;
3
+ }
4
+
5
+ module.exports = {
6
+ calculateFee
7
+ };
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "web3-token-helper",
3
+ "version": "1.0.0",
4
+ "description": "Utilities for Web3 token applications",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [
10
+ "web3",
11
+ "ethereum",
12
+ "blockchain",
13
+ "token"
14
+ ],
15
+ "author": "sean",
16
+ "license": "MIT"
17
+ }