num-only 1.2.2 → 1.2.4
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/README.md +6 -2
- package/build/index.cjs.js +1 -1
- package/build/index.esm.js +1 -1
- package/dist/num-only.js +1 -1
- package/dist/num-only.min.js +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# num-only
|
|
2
2
|
|
|
3
3
|

|
|
4
|
+

|
|
4
5
|

|
|
5
|
-

|
|
6
|
+

|
|
7
7
|

|
|
8
8
|

|
|
9
9
|
|
|
@@ -18,7 +18,11 @@ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
+
# using NPM
|
|
21
22
|
$ npm install num-only
|
|
23
|
+
|
|
24
|
+
# using Bun
|
|
25
|
+
$ bun add num-only
|
|
22
26
|
```
|
|
23
27
|
|
|
24
28
|
## Import
|
package/build/index.cjs.js
CHANGED
package/build/index.esm.js
CHANGED
package/dist/num-only.js
CHANGED
package/dist/num-only.min.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "num-only",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Utility function to remove non-numeric characters of input.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
"main": "build/index.cjs.js",
|
|
30
30
|
"types": "build/index.d.ts",
|
|
31
31
|
"scripts": {
|
|
32
|
-
"prepare": "
|
|
32
|
+
"prepare": "bun x husky",
|
|
33
33
|
"commit": "git-cz",
|
|
34
34
|
"build": "rollup --config",
|
|
35
|
+
"type-check": "tsc --noEmit",
|
|
35
36
|
"lint": "eslint --fix src/ test/ eslint.config.mjs rollup.config.mjs",
|
|
36
|
-
"pretest": "bun run build",
|
|
37
|
+
"pretest": "bun run build --silent",
|
|
37
38
|
"test": "bun test --coverage --coverage-reporter=lcov --coverage-dir=test/__coverage__",
|
|
38
|
-
"
|
|
39
|
+
"test:ci": "bun test"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@babel/preset-env": "^7.26.9",
|