kim-tools 0.0.0-stage → 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.
- package/index.js +14 -0
- package/package.json +11 -4
- package/README.md +0 -3
package/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const capitalFirstLetter = (str) => {
|
|
2
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export const multiply = (num1, num2) => {
|
|
6
|
+
return num1 * num2;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
// if we will publish this npm:
|
|
10
|
+
// make sure it does not have the same package name from any published npm
|
|
11
|
+
// check using "npm view kim-tools", then if its error it means it does not have any similar package name from npm
|
|
12
|
+
|
|
13
|
+
// use "npm login" to login terminal (press enter)
|
|
14
|
+
// use "npm publish"
|
package/package.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kim-tools",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Simple reusable tools for Node.js",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "Silas Kim",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"type": "module"
|
|
13
|
+
}
|
package/README.md
DELETED