@accitdg/web-helpers 0.0.1
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 +1 -0
- package/dist/index.esm.ts +13 -0
- package/dist/index.ts +18 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
WEB HELPERS
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const convertNumberToCurrency = numberValue => {
|
|
2
|
+
let formattedValue = numberValue.toLocaleString("en-PH", {
|
|
3
|
+
style: "currency",
|
|
4
|
+
currency: "PHP"
|
|
5
|
+
});
|
|
6
|
+
return formattedValue;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const webHelpers = {
|
|
10
|
+
convertNumberToCurrency
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { webHelpers as default, webHelpers };
|
package/dist/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const convertNumberToCurrency = numberValue => {
|
|
6
|
+
let formattedValue = numberValue.toLocaleString("en-PH", {
|
|
7
|
+
style: "currency",
|
|
8
|
+
currency: "PHP"
|
|
9
|
+
});
|
|
10
|
+
return formattedValue;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const webHelpers = {
|
|
14
|
+
convertNumberToCurrency
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports["default"] = webHelpers;
|
|
18
|
+
exports.webHelpers = webHelpers;
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@accitdg/web-helpers",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "rollup -c",
|
|
7
|
+
"prepublishOnly": "npm run build",
|
|
8
|
+
"test": "jest"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"axios",
|
|
19
|
+
"uuid",
|
|
20
|
+
"ua-parser-js",
|
|
21
|
+
"@mui/material",
|
|
22
|
+
"react",
|
|
23
|
+
"prop-types",
|
|
24
|
+
"@fontsource/montserrat",
|
|
25
|
+
"@fontsource/roboto",
|
|
26
|
+
"@fontsource/sora",
|
|
27
|
+
"http",
|
|
28
|
+
"client",
|
|
29
|
+
"authentication",
|
|
30
|
+
"token"
|
|
31
|
+
],
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@fontsource/montserrat": "^5.2.6",
|
|
34
|
+
"@fontsource/roboto": "^5.2.6",
|
|
35
|
+
"@fontsource/sora": "^5.2.6",
|
|
36
|
+
"@mui/icons-material": "^7.3.5",
|
|
37
|
+
"@mui/material": "^7.1.1",
|
|
38
|
+
"axios": "^1.9.0",
|
|
39
|
+
"prop-types": "^15.8.1",
|
|
40
|
+
"react": "^19.1.0",
|
|
41
|
+
"ua-parser-js": "^2.0.6",
|
|
42
|
+
"uuid": "^13.0.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@babel/preset-react": "^7.28.5",
|
|
46
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
47
|
+
"@eslint/js": "^9.28.0",
|
|
48
|
+
"@mui/icons-material": "^7.3.5",
|
|
49
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
50
|
+
"@rollup/plugin-commonjs": "^24.1.0",
|
|
51
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
52
|
+
"@types/react": "^19.1.7",
|
|
53
|
+
"@types/react-dom": "^19.1.6",
|
|
54
|
+
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
55
|
+
"eslint": "^9.39.1",
|
|
56
|
+
"eslint-plugin-react": "^7.37.5",
|
|
57
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
59
|
+
"jest": "^29.0.0",
|
|
60
|
+
"rollup": "^2.79.1",
|
|
61
|
+
"typescript": "~5.9.3",
|
|
62
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
63
|
+
},
|
|
64
|
+
"author": "ACC_CALVIN",
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"overrides": {
|
|
67
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
68
|
+
}
|
|
69
|
+
}
|