
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
rc-js-util
Advanced tools
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
Using npm:
$ 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:
declare global
{
interface IBuildConstants
{
MY_CUSTOM_FLAG?: boolean;
}
}
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 filesFAQs
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
The npm package rc-js-util receives a total of 131 weekly downloads. As such, rc-js-util popularity was classified as not popular.
We found that rc-js-util demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.