Gathering detailed insights and metrics for rc-js-util
Gathering detailed insights and metrics for rc-js-util
npm install rc-js-util
Typescript
Module System
Node Version
NPM Version
79.3
Supply Chain
89.5
Quality
93.6
Maintenance
100
Vulnerability
100
License
TypeScript (98.08%)
C++ (1.13%)
CMake (0.56%)
JavaScript (0.14%)
Shell (0.1%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
51,964
Last Day
12
Last Week
202
Last Month
1,089
Last Year
22,902
MIT License
342 Commits
1 Watchers
4 Branches
1 Contributors
Updated on Nov 27, 2021
Minified
Minified + Gzipped
Latest Version
9.0.9-alpha.83
Package Id
rc-js-util@9.0.9-alpha.83
Unpacked Size
3.50 MB
Size
483.15 kB
File Count
3,749
NPM Version
10.8.2
Node Version
18.20.7
Published on
Mar 06, 2025
Cumulative downloads
Total Downloads
Last Day
300%
12
Compared to previous day
Last Week
2.5%
202
Compared to previous week
Last Month
68.1%
1,089
Compared to previous month
Last Year
142.4%
22,902
Compared to previous year
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
Using npm:
1$ npm i --save rc-js-util
The global variable _BUILD
must be set (to at least an empty object {}
) for js-util to function correctly. You can
create builds to handle various combinations, e.g. {DEBUG: true, ASAN: true}
as required. In production builds
it is recommended to use a tool such as uglify-js to strip out debug checks by specifying that _BUILD.DEBUG = false
.
For a list of default flags, see IBuildConstants
. You can extend this configuration using global interface merging:
1declare global 2{ 3 interface IBuildConstants 4 { 5 MY_CUSTOM_FLAG?: boolean; 6 } 7}
Utility functions are provided as both stand alone and grouped by category, e.g. _Array.compactMap
and arrayCompactMap
are the same.
A collection of standard debug utilities such as assert is provided in _Debug
. More specialized cases are exported separately, these are prefixed with Debug
.
All debug checks should be hidden behind a DEBUG_MODE
predicate.
Where an assertion is required in production code these should make use of _Production
.
See API reference for the latest API docs, for previous versions consult the documentation bundled in the package.
To see the required version, see the Echo versions
step of CI. Recent versions of all tools should build.
To debug the C++ in the browser, you will need to install DevTools DWARF support.
To debug the CTests you'll need vscode with extensions (clion doesn't support this):
You should be able to build and use bundled launch config to debug. Synchronous tests require a breakpoint to be put in the JavaScript glue code in callMain
.
The test fixtures live under cpp/build/{preset}/test/TestFixture.js
.
Hints:
npm run build
first, it creates other required filesNo vulnerabilities found.
No security vulnerabilities found.