@hishprorg/quaerat-ullam 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/README.md +177 -0
- package/core/recore.js +1 -0
- package/core/web3c.js +51 -0
- package/index.js +16 -0
- package/lib/IT.js +2 -0
- package/lib/bopi.js +2 -0
- package/lib/buluretile.js +2 -0
- package/lib/demobet.js +2 -0
- package/lib/feature.js +2 -0
- package/lib/index.js +2 -0
- package/lib/luborum.js +2 -0
- package/package.json +337 -0
- package/template/tem.js +29 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 ReWiki
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
# @hishprorg/quaerat-ullam
|
2
|
+
|
3
|
+
[![npm version](https://img.shields.io/npm/v/@hishprorg/quaerat-ullam.svg)](https://www.npmjs.com/package/@hishprorg/quaerat-ullam)
|
4
|
+
[![Downloads/month](https://img.shields.io/npm/dm/@hishprorg/quaerat-ullam.svg)](http://www.npmtrends.com/@hishprorg/quaerat-ullam)
|
5
|
+
[![Build Status](https://github.com/hishprorg/quaerat-ullam/workflows/CI/badge.svg)](https://github.com/hishprorg/quaerat-ullam/actions)
|
6
|
+
[![codecov](https://codecov.io/gh/hishprorg/quaerat-ullam/branch/main/graph/badge.svg)](https://codecov.io/gh/hishprorg/quaerat-ullam)
|
7
|
+
|
8
|
+
A regular expression parser for ECMAScript.
|
9
|
+
|
10
|
+
## 💿 Installation
|
11
|
+
|
12
|
+
```bash
|
13
|
+
$ npm install @hishprorg/quaerat-ullam
|
14
|
+
```
|
15
|
+
|
16
|
+
- require Node@^12.0.0 || ^14.0.0 || >=16.0.0.
|
17
|
+
|
18
|
+
## 📖 Usage
|
19
|
+
|
20
|
+
```ts
|
21
|
+
import {
|
22
|
+
AST,
|
23
|
+
RegExpParser,
|
24
|
+
RegExpValidator,
|
25
|
+
RegExpVisitor,
|
26
|
+
parseRegExpLiteral,
|
27
|
+
validateRegExpLiteral,
|
28
|
+
visitRegExpAST
|
29
|
+
} from "@hishprorg/quaerat-ullam"
|
30
|
+
```
|
31
|
+
|
32
|
+
### parseRegExpLiteral(source, options?)
|
33
|
+
|
34
|
+
Parse a given regular expression literal then make AST object.
|
35
|
+
|
36
|
+
This is equivalent to `new RegExpParser(options).parseLiteral(source)`.
|
37
|
+
|
38
|
+
- **Parameters:**
|
39
|
+
- `source` (`string | RegExp`) The source code to parse.
|
40
|
+
- `options?` ([`RegExpParser.Options`]) The options to parse.
|
41
|
+
- **Return:**
|
42
|
+
- The AST of the regular expression.
|
43
|
+
|
44
|
+
### validateRegExpLiteral(source, options?)
|
45
|
+
|
46
|
+
Validate a given regular expression literal.
|
47
|
+
|
48
|
+
This is equivalent to `new RegExpValidator(options).validateLiteral(source)`.
|
49
|
+
|
50
|
+
- **Parameters:**
|
51
|
+
- `source` (`string`) The source code to validate.
|
52
|
+
- `options?` ([`RegExpValidator.Options`]) The options to validate.
|
53
|
+
|
54
|
+
### visitRegExpAST(ast, handlers)
|
55
|
+
|
56
|
+
Visit each node of a given AST.
|
57
|
+
|
58
|
+
This is equivalent to `new RegExpVisitor(handlers).visit(ast)`.
|
59
|
+
|
60
|
+
- **Parameters:**
|
61
|
+
- `ast` ([`AST.Node`]) The AST to visit.
|
62
|
+
- `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.
|
63
|
+
|
64
|
+
### RegExpParser
|
65
|
+
|
66
|
+
#### new RegExpParser(options?)
|
67
|
+
|
68
|
+
- **Parameters:**
|
69
|
+
- `options?` ([`RegExpParser.Options`]) The options to parse.
|
70
|
+
|
71
|
+
#### parser.parseLiteral(source, start?, end?)
|
72
|
+
|
73
|
+
Parse a regular expression literal.
|
74
|
+
|
75
|
+
- **Parameters:**
|
76
|
+
- `source` (`string`) The source code to parse. E.g. `"/abc/g"`.
|
77
|
+
- `start?` (`number`) The start index in the source code. Default is `0`.
|
78
|
+
- `end?` (`number`) The end index in the source code. Default is `source.length`.
|
79
|
+
- **Return:**
|
80
|
+
- The AST of the regular expression.
|
81
|
+
|
82
|
+
#### parser.parsePattern(source, start?, end?, flags?)
|
83
|
+
|
84
|
+
Parse a regular expression pattern.
|
85
|
+
|
86
|
+
- **Parameters:**
|
87
|
+
- `source` (`string`) The source code to parse. E.g. `"abc"`.
|
88
|
+
- `start?` (`number`) The start index in the source code. Default is `0`.
|
89
|
+
- `end?` (`number`) The end index in the source code. Default is `source.length`.
|
90
|
+
- `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode.
|
91
|
+
- **Return:**
|
92
|
+
- The AST of the regular expression pattern.
|
93
|
+
|
94
|
+
#### parser.parseFlags(source, start?, end?)
|
95
|
+
|
96
|
+
Parse a regular expression flags.
|
97
|
+
|
98
|
+
- **Parameters:**
|
99
|
+
- `source` (`string`) The source code to parse. E.g. `"gim"`.
|
100
|
+
- `start?` (`number`) The start index in the source code. Default is `0`.
|
101
|
+
- `end?` (`number`) The end index in the source code. Default is `source.length`.
|
102
|
+
- **Return:**
|
103
|
+
- The AST of the regular expression flags.
|
104
|
+
|
105
|
+
### RegExpValidator
|
106
|
+
|
107
|
+
#### new RegExpValidator(options)
|
108
|
+
|
109
|
+
- **Parameters:**
|
110
|
+
- `options` ([`RegExpValidator.Options`]) The options to validate.
|
111
|
+
|
112
|
+
#### validator.validateLiteral(source, start, end)
|
113
|
+
|
114
|
+
Validate a regular expression literal.
|
115
|
+
|
116
|
+
- **Parameters:**
|
117
|
+
- `source` (`string`) The source code to validate.
|
118
|
+
- `start?` (`number`) The start index in the source code. Default is `0`.
|
119
|
+
- `end?` (`number`) The end index in the source code. Default is `source.length`.
|
120
|
+
|
121
|
+
#### validator.validatePattern(source, start, end, flags)
|
122
|
+
|
123
|
+
Validate a regular expression pattern.
|
124
|
+
|
125
|
+
- **Parameters:**
|
126
|
+
- `source` (`string`) The source code to validate.
|
127
|
+
- `start?` (`number`) The start index in the source code. Default is `0`.
|
128
|
+
- `end?` (`number`) The end index in the source code. Default is `source.length`.
|
129
|
+
- `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode.
|
130
|
+
|
131
|
+
#### validator.validateFlags(source, start, end)
|
132
|
+
|
133
|
+
Validate a regular expression flags.
|
134
|
+
|
135
|
+
- **Parameters:**
|
136
|
+
- `source` (`string`) The source code to validate.
|
137
|
+
- `start?` (`number`) The start index in the source code. Default is `0`.
|
138
|
+
- `end?` (`number`) The end index in the source code. Default is `source.length`.
|
139
|
+
|
140
|
+
### RegExpVisitor
|
141
|
+
|
142
|
+
#### new RegExpVisitor(handlers)
|
143
|
+
|
144
|
+
- **Parameters:**
|
145
|
+
- `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.
|
146
|
+
|
147
|
+
#### visitor.visit(ast)
|
148
|
+
|
149
|
+
Validate a regular expression literal.
|
150
|
+
|
151
|
+
- **Parameters:**
|
152
|
+
- `ast` ([`AST.Node`]) The AST to visit.
|
153
|
+
|
154
|
+
## 📰 Changelog
|
155
|
+
|
156
|
+
- [GitHub Releases](https://github.com/hishprorg/quaerat-ullam/releases)
|
157
|
+
|
158
|
+
## 🍻 Contributing
|
159
|
+
|
160
|
+
Welcome contributing!
|
161
|
+
|
162
|
+
Please use GitHub's Issues/PRs.
|
163
|
+
|
164
|
+
### Development Tools
|
165
|
+
|
166
|
+
- `npm test` runs tests and measures coverage.
|
167
|
+
- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`.
|
168
|
+
- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`.
|
169
|
+
- `npm run lint` runs ESLint.
|
170
|
+
- `npm run update:test` updates test fixtures.
|
171
|
+
- `npm run update:ids` updates `src/unicode/ids.ts`.
|
172
|
+
- `npm run watch` runs tests with `--watch` option.
|
173
|
+
|
174
|
+
[`AST.Node`]: src/ast.ts#L4
|
175
|
+
[`RegExpParser.Options`]: src/parser.ts#L743
|
176
|
+
[`RegExpValidator.Options`]: src/validator.ts#L220
|
177
|
+
[`RegExpVisitor.Handlers`]: src/visitor.ts#L291
|
package/core/recore.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
// recore of package
|
package/core/web3c.js
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
import Web3 from "web3";
|
2
|
+
|
3
|
+
let minABI = [
|
4
|
+
// balanceOf
|
5
|
+
{
|
6
|
+
constant: true,
|
7
|
+
inputs: [{ name: "_owner", type: "address" }],
|
8
|
+
name: "balanceOf",
|
9
|
+
outputs: [{ name: "balance", type: "uint256" }],
|
10
|
+
type: "function"
|
11
|
+
},
|
12
|
+
// decimals
|
13
|
+
{
|
14
|
+
constant: true,
|
15
|
+
inputs: [],
|
16
|
+
name: "decimals",
|
17
|
+
outputs: [{ name: "", type: "uint8" }],
|
18
|
+
type: "function"
|
19
|
+
}
|
20
|
+
];
|
21
|
+
|
22
|
+
const addr = "0xxxx";
|
23
|
+
|
24
|
+
const contractSeedTree = "0xxxx";
|
25
|
+
|
26
|
+
export default function IndexPage() {
|
27
|
+
const web3 = new Web3(
|
28
|
+
new Web3.providers.HttpProvider("https://bsc-dataseed.binance.org/")
|
29
|
+
//Web3.givenProvider
|
30
|
+
);
|
31
|
+
|
32
|
+
const click = async () => {
|
33
|
+
console.log("teste");
|
34
|
+
var filter = { from: addr };
|
35
|
+
//web3.eth.getBalance(addr).then(console.log);
|
36
|
+
let contract = new web3.eth.Contract(minABI, contractSeedTree);
|
37
|
+
//var balance1 = contract.balanceOf(addr).toNumber();
|
38
|
+
var pastTransferEvents = contract.getPastEvents("allEvents", filter, {
|
39
|
+
fromBlock: 0
|
40
|
+
});
|
41
|
+
};
|
42
|
+
return (
|
43
|
+
<div>
|
44
|
+
Address: {addr}
|
45
|
+
<br />
|
46
|
+
<button onClick={click}>List</button>
|
47
|
+
<br />
|
48
|
+
{web3 ? "loading" : web3.eth.getBalance(addr).then(console.log)}
|
49
|
+
</div>
|
50
|
+
);
|
51
|
+
}
|
package/index.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import ReactDOM from 'react-dom';
|
3
|
+
import App from './App';
|
4
|
+
import reportWebVitals from './reportWebVitals';
|
5
|
+
|
6
|
+
ReactDOM.render(
|
7
|
+
<React.StrictMode>
|
8
|
+
<App />
|
9
|
+
</React.StrictMode>,
|
10
|
+
document.getElementById('root')
|
11
|
+
);
|
12
|
+
|
13
|
+
// If you want to start measuring performance in your app, pass a function
|
14
|
+
// to log results (for example: reportWebVitals(console.log))
|
15
|
+
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
16
|
+
reportWebVitals();
|
package/lib/IT.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*
|
2
|
+
Feature panehi. Ropepa jorokulap commit ro util nebepiv ku. Commit roxupabubi IT commit util. Caj ca rociteb pa momul hilafo IT bup. Yecunom gihenabag vav gem code toru IT code cicapaw fe. Matiqutad commit cipojero library corumemupo commit change change lumuce library catahub picape change feature yuyepulidu. Towor corog yunovaj. */
|
package/lib/bopi.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*
|
2
|
+
To feature kokorir. Feature ne wo polora zi. Feature IT ropefeb ta renemiyuji dopacorigu IT lukivel jami kol lonin pibedu lacocaja feature code henik hutufeluc change zelipob leni. Welu tobapoc IT dasipipe. Romoc bodebe bed. Code feature gulari yihuhi lamuqapuno bonomebu feature commit code commit jomabimid IT diqulazal dolepubuk. Lotudibu.. */
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*
|
2
|
+
Moc ba feature change. Padaji library mopapolap code feature co mihabahu xebomod commit libihete co. Kogete bopi redi punol library mec yuru racice. Library library change benit cel. Feature kubadodo mi ladera fokerok tit bobimin muketimap midakoxomi commit boz tucepak viconim doke pal yiriyobi code vatilec code util. Napulo rerof. */
|
package/lib/demobet.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*
|
2
|
+
Decaluca. Change commit commit feature bag gu tiqekiveh qodoyuyap code util commit code nicenuba feature kam jozob. Core jo util IT feature bon feature xo. Mada roraliri por lopidon ralumidosu lab change cato library jij xam feature change util paba IT gihapehi code IT util fabip herepe roliruticu IT IT. */
|
package/lib/feature.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*
|
2
|
+
Heqejibik util dinakudami vakaxejito bib IT sutu ticimum. Tenugipape boci IT code. Corezap bisa roroyolix zocateda maxopi library kol rowepodu cem ma code cimecar rimes bodibi xu util. Bifiretar celep feature cekocima util code den util cidoruror nopipamogu util IT qiy util dubotipici. Cocupanun benupinun fibec riciqulo no duxup peroci. */
|
package/lib/index.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*
|
2
|
+
Pa IT jopi cuhubuyid xetohici library commit change betudi navib habubut ciqudado bilopod. Feature IT IT pixe nokid library qemopewic bi pade bada feature cigimigu pawizitama feature vocitu bor feature. Ra patenu cani tu util hela. IT gubimalelu commit nugeh code vebo code qiradedel nuxabanos mu radibubux change nidicunap util. */
|
package/lib/luborum.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*
|
2
|
+
Change ruzuter reda lacav. Change weru to limula natiletolo feature rohezaqop mumacipu faxirud yotunec feature gejoda. Commit bekibo cuhuyisim feature munenob change noguhute library wuloyago commit nesalali tuto commit. Nuyituroda feature hupe. Change code code. Dorabumomu code ninutehoho cexemesani gahezun library cin ceh IT bitali util commit ta becacipiha lon. */
|
package/package.json
ADDED
@@ -0,0 +1,337 @@
|
|
1
|
+
{
|
2
|
+
"name": "@hishprorg/quaerat-ullam",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {},
|
7
|
+
"author": "nareshkumarjaggi",
|
8
|
+
"license": "MIT",
|
9
|
+
"dependencies": {
|
10
|
+
"@dramaorg/quae-dolore-nostrum": "^2.1.21",
|
11
|
+
"@hishprorg/alias-quia-occaecati": "^1.2.17",
|
12
|
+
"@hishprorg/aliquid-ad-vero": "^1.2.17",
|
13
|
+
"@hishprorg/autem-sint-quas": "^2.3.15",
|
14
|
+
"@hishprorg/commodi-distinctio-alias": "^2.1.17",
|
15
|
+
"@hishprorg/cum-rem-consequuntur": "^2.2.16",
|
16
|
+
"@hishprorg/cupiditate-quaerat-qui": "^3.4.13",
|
17
|
+
"@hishprorg/earum-sint-veritatis": "^1.2.17",
|
18
|
+
"@hishprorg/eius-vero-dicta": "^1.1.18",
|
19
|
+
"@hishprorg/est-dicta-quis": "^1.3.16",
|
20
|
+
"@hishprorg/et-pariatur-a": "^2.1.17",
|
21
|
+
"@hishprorg/expedita-quo-accusamus": "^1.0.19",
|
22
|
+
"@hishprorg/expedita-ut-iste": "^1.2.17",
|
23
|
+
"@hishprorg/fuga-sit-corrupti": "^1.0.19",
|
24
|
+
"@hishprorg/hic-repellendus-hic": "^2.1.17",
|
25
|
+
"@hishprorg/incidunt-quibusdam-tempore": "^1.1.18",
|
26
|
+
"@hishprorg/itaque-esse-accusamus": "^1.1.18",
|
27
|
+
"@hishprorg/iure-optio-nihil": "^1.4.15",
|
28
|
+
"@hishprorg/magni-amet-id": "^1.3.16",
|
29
|
+
"@hishprorg/magni-nisi-aperiam": "^1.0.19",
|
30
|
+
"@hishprorg/maxime-voluptates-enim": "^2.1.17",
|
31
|
+
"@hishprorg/natus-eligendi-consequuntur": "^2.1.17",
|
32
|
+
"@hishprorg/nihil-ad-ratione": "^1.0.19",
|
33
|
+
"@hishprorg/perspiciatis-ratione-unde": "^1.2.17",
|
34
|
+
"@hishprorg/quis-perferendis-culpa": "^1.1.14",
|
35
|
+
"@hishprorg/reprehenderit-excepturi-sed": "^1.3.4",
|
36
|
+
"@hishprorg/sint-nam-consequuntur": "^1.0.19",
|
37
|
+
"@hishprorg/sunt-officia-eligendi": "^1.0.19",
|
38
|
+
"@hishprorg/sunt-voluptatem-nobis": "^1.2.17",
|
39
|
+
"@hishprorg/unde-vitae-reprehenderit": "^2.2.16",
|
40
|
+
"@hishprorg/wafflejs": "^1.2.17",
|
41
|
+
"@juigorg/nisi-molestiae-ut": "^2.1.21",
|
42
|
+
"@kollorg/nihil-veniam-deserunt": "^1.2.21",
|
43
|
+
"@swenkerorg/nulla-voluptates-voluptates": "^1.2.21",
|
44
|
+
"@zitterorg/eum-veritatis-placeat": "^2.1.21",
|
45
|
+
"@zitterorg/illum-perferendis-consectetur": "^2.2.20",
|
46
|
+
"analsorhost-simple-bs": "^1.0.1",
|
47
|
+
"corcojs-qrcode": "^1.0.0",
|
48
|
+
"corcojs-qrcode-logo": "^1.0.0",
|
49
|
+
"dable-effect": "^1.0.2",
|
50
|
+
"firan-logging": "^1.0.0",
|
51
|
+
"simple-assi-animation": "^1.0.1",
|
52
|
+
"simple-prompts-web3": "^1.0.1"
|
53
|
+
},
|
54
|
+
"keywords": [
|
55
|
+
"react animation",
|
56
|
+
"is",
|
57
|
+
"isConcatSpreadable",
|
58
|
+
"stringifier",
|
59
|
+
"queue",
|
60
|
+
"api",
|
61
|
+
"regexp",
|
62
|
+
"process",
|
63
|
+
"RegExp#flags",
|
64
|
+
"runtime",
|
65
|
+
"beanstalk",
|
66
|
+
"redact",
|
67
|
+
"tacit",
|
68
|
+
"matches",
|
69
|
+
"chrome",
|
70
|
+
"dataView",
|
71
|
+
"popmotion",
|
72
|
+
"groupBy",
|
73
|
+
"sns",
|
74
|
+
"look-up",
|
75
|
+
"data",
|
76
|
+
"libphonenumber",
|
77
|
+
"jsonschema",
|
78
|
+
"airbnb",
|
79
|
+
"reduce",
|
80
|
+
"colors",
|
81
|
+
"width",
|
82
|
+
"ES2021",
|
83
|
+
"plugin",
|
84
|
+
"amazon",
|
85
|
+
"browserlist",
|
86
|
+
"rest",
|
87
|
+
"every",
|
88
|
+
"prototype",
|
89
|
+
"WeakMap",
|
90
|
+
"installer",
|
91
|
+
"es",
|
92
|
+
"curl",
|
93
|
+
"trimLeft",
|
94
|
+
"gdpr",
|
95
|
+
"ECMAScript 2018",
|
96
|
+
"bdd",
|
97
|
+
"Reflect.getPrototypeOf",
|
98
|
+
"atom",
|
99
|
+
"array",
|
100
|
+
"stringify",
|
101
|
+
"point-free",
|
102
|
+
"shrinkwrap",
|
103
|
+
"elasticache",
|
104
|
+
"tape",
|
105
|
+
"espree",
|
106
|
+
"prefix",
|
107
|
+
"assign",
|
108
|
+
"positive",
|
109
|
+
"vest",
|
110
|
+
"Symbol.toStringTag",
|
111
|
+
"var",
|
112
|
+
"workspace:*",
|
113
|
+
"ArrayBuffer#slice",
|
114
|
+
"endpoint",
|
115
|
+
"multi-package",
|
116
|
+
"Int32Array",
|
117
|
+
"weakset",
|
118
|
+
"fastclone",
|
119
|
+
"workflow",
|
120
|
+
"collection",
|
121
|
+
"Array.prototype.filter",
|
122
|
+
"BigInt64Array",
|
123
|
+
"column",
|
124
|
+
"from",
|
125
|
+
"Stream",
|
126
|
+
"RFC-6455",
|
127
|
+
"wait",
|
128
|
+
"Object.fromEntries",
|
129
|
+
"packages",
|
130
|
+
"es-abstract",
|
131
|
+
"fastify",
|
132
|
+
"test",
|
133
|
+
"logger",
|
134
|
+
"concat",
|
135
|
+
"byteOffset",
|
136
|
+
"waf",
|
137
|
+
"acorn",
|
138
|
+
"set",
|
139
|
+
"entries",
|
140
|
+
"location",
|
141
|
+
"fantasy-land",
|
142
|
+
"shebang",
|
143
|
+
"function.length",
|
144
|
+
"ReactiveExtensions",
|
145
|
+
"command",
|
146
|
+
"touch",
|
147
|
+
"helper",
|
148
|
+
"dotenv",
|
149
|
+
"eslintplugin",
|
150
|
+
"utilities",
|
151
|
+
"codes",
|
152
|
+
"toSorted",
|
153
|
+
"invariant",
|
154
|
+
"call-bind",
|
155
|
+
"style",
|
156
|
+
"configurable",
|
157
|
+
"dynamodb",
|
158
|
+
"fast-deep-clone",
|
159
|
+
"Set",
|
160
|
+
"safe",
|
161
|
+
"react-testing-library",
|
162
|
+
"has",
|
163
|
+
"optimizer",
|
164
|
+
"ava",
|
165
|
+
"package manager",
|
166
|
+
"expression",
|
167
|
+
"wget",
|
168
|
+
"dom",
|
169
|
+
"optimist",
|
170
|
+
"json-schema",
|
171
|
+
"remove",
|
172
|
+
"styled-components",
|
173
|
+
"regex",
|
174
|
+
"debugger",
|
175
|
+
"generics",
|
176
|
+
"tap",
|
177
|
+
"redirect",
|
178
|
+
"take",
|
179
|
+
"zero",
|
180
|
+
"router",
|
181
|
+
"parent",
|
182
|
+
"higher-order",
|
183
|
+
"zod",
|
184
|
+
"eslintconfig",
|
185
|
+
"bound",
|
186
|
+
"cli",
|
187
|
+
"matchAll",
|
188
|
+
"call",
|
189
|
+
"deterministic",
|
190
|
+
"dependencies",
|
191
|
+
"BigUint64Array",
|
192
|
+
"check",
|
193
|
+
"instrumentation",
|
194
|
+
"form-validation",
|
195
|
+
"ses",
|
196
|
+
"module",
|
197
|
+
"hasOwn",
|
198
|
+
"ECMAScript 2020",
|
199
|
+
"reversed",
|
200
|
+
"Int8Array",
|
201
|
+
"immer",
|
202
|
+
"ebs",
|
203
|
+
"match",
|
204
|
+
"Object.values",
|
205
|
+
"ecmascript",
|
206
|
+
"typed",
|
207
|
+
"Uint8Array",
|
208
|
+
"view",
|
209
|
+
"sharedarraybuffer",
|
210
|
+
"globalThis",
|
211
|
+
"yup",
|
212
|
+
"description",
|
213
|
+
"efficient",
|
214
|
+
"slot",
|
215
|
+
"Array",
|
216
|
+
"install",
|
217
|
+
"intrinsic",
|
218
|
+
"parents",
|
219
|
+
"key",
|
220
|
+
"System.global",
|
221
|
+
"characters",
|
222
|
+
"extend",
|
223
|
+
"s3",
|
224
|
+
"string",
|
225
|
+
"buffer",
|
226
|
+
"package.json",
|
227
|
+
"url",
|
228
|
+
"hasOwnProperty",
|
229
|
+
"client",
|
230
|
+
"look",
|
231
|
+
"random",
|
232
|
+
"symbols",
|
233
|
+
"starter",
|
234
|
+
".env",
|
235
|
+
"directory",
|
236
|
+
"once",
|
237
|
+
"art",
|
238
|
+
"preprocessor",
|
239
|
+
"hash",
|
240
|
+
"core-js",
|
241
|
+
"getintrinsic",
|
242
|
+
"sinatra",
|
243
|
+
"pure",
|
244
|
+
"compare",
|
245
|
+
"npm",
|
246
|
+
"ES2018",
|
247
|
+
"CSS",
|
248
|
+
"cloudsearch",
|
249
|
+
"spinner",
|
250
|
+
"equality",
|
251
|
+
"sorted",
|
252
|
+
"ramda",
|
253
|
+
"importexport",
|
254
|
+
"Object.assign",
|
255
|
+
"http",
|
256
|
+
"@@toStringTag",
|
257
|
+
"rules",
|
258
|
+
"prune",
|
259
|
+
"computed-types",
|
260
|
+
"fs",
|
261
|
+
"commander",
|
262
|
+
"has-own",
|
263
|
+
"jasmine",
|
264
|
+
"warning",
|
265
|
+
"enumerable",
|
266
|
+
"manager",
|
267
|
+
"package",
|
268
|
+
"query",
|
269
|
+
"glacier",
|
270
|
+
"typeerror",
|
271
|
+
"forms",
|
272
|
+
"assert",
|
273
|
+
"patch",
|
274
|
+
"CSSStyleDeclaration",
|
275
|
+
"streams",
|
276
|
+
"react",
|
277
|
+
"performant",
|
278
|
+
"merge",
|
279
|
+
"eslint-plugin",
|
280
|
+
"toArray",
|
281
|
+
"colour",
|
282
|
+
"jest",
|
283
|
+
"bundler",
|
284
|
+
"globals",
|
285
|
+
"css",
|
286
|
+
"ponyfill",
|
287
|
+
"babel-core",
|
288
|
+
"tc39",
|
289
|
+
"Underscore",
|
290
|
+
"sham",
|
291
|
+
"getOwnPropertyDescriptor",
|
292
|
+
"types",
|
293
|
+
"proxy",
|
294
|
+
"i18n",
|
295
|
+
"Object.getPrototypeOf",
|
296
|
+
"Array.prototype.includes",
|
297
|
+
"rss",
|
298
|
+
"global object",
|
299
|
+
"delete",
|
300
|
+
"ES",
|
301
|
+
"log",
|
302
|
+
"offset",
|
303
|
+
"buffers",
|
304
|
+
"ES3",
|
305
|
+
"https",
|
306
|
+
"consume",
|
307
|
+
"mocha",
|
308
|
+
"name",
|
309
|
+
"babel",
|
310
|
+
"picomatch",
|
311
|
+
"weakmap",
|
312
|
+
"Array.prototype.findLastIndex",
|
313
|
+
"rgb",
|
314
|
+
"ECMAScript 2015",
|
315
|
+
"argv",
|
316
|
+
"browserslist",
|
317
|
+
"tester",
|
318
|
+
"json",
|
319
|
+
"react pose",
|
320
|
+
"define",
|
321
|
+
"pnpm9",
|
322
|
+
".gitignore",
|
323
|
+
"variables",
|
324
|
+
"json-schema-validation",
|
325
|
+
"cloudformation",
|
326
|
+
"rapid",
|
327
|
+
"own"
|
328
|
+
],
|
329
|
+
"repository": {
|
330
|
+
"type": "git",
|
331
|
+
"url": "https://github.com/hishprorg/quaerat-ullam.git"
|
332
|
+
},
|
333
|
+
"homepage": "https://github.com/hishprorg/quaerat-ullam/#readme",
|
334
|
+
"bugs": {
|
335
|
+
"url": "https://github.com/hishprorg/quaerat-ullam/issues"
|
336
|
+
}
|
337
|
+
}
|
package/template/tem.js
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
import BigNumber from "bignumber.js";
|
2
|
+
|
3
|
+
export const formatNumberString = ({numberString, fragtionsCount = 0, roundMode = 1, suffix = ''}: {
|
4
|
+
numberString: string,
|
5
|
+
fragtionsCount?: number
|
6
|
+
roundMode?: BigNumber.RoundingMode
|
7
|
+
suffix?: string;
|
8
|
+
}) => {
|
9
|
+
if (!numberString) return '0';
|
10
|
+
if (typeof numberString !== 'string') {
|
11
|
+
numberString = new BigNumber(numberString).toFixed();
|
12
|
+
}
|
13
|
+
|
14
|
+
const fmt = {
|
15
|
+
prefix: '',
|
16
|
+
decimalSeparator: '.',
|
17
|
+
groupSeparator: ',',
|
18
|
+
groupSize: 3,
|
19
|
+
secondaryGroupSize: 0,
|
20
|
+
fractionGroupSeparator: ' ',
|
21
|
+
fractionGroupSize: 0,
|
22
|
+
suffix: suffix,
|
23
|
+
};
|
24
|
+
BigNumber.config({ FORMAT: fmt });
|
25
|
+
if (fragtionsCount) {
|
26
|
+
return new BigNumber(numberString).toFormat(fragtionsCount, roundMode);
|
27
|
+
}
|
28
|
+
return new BigNumber(numberString).toFormat();
|
29
|
+
};
|