Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
rc-js-util
Advanced tools
Readme
A collection of strongly typed JS utilities.
Using npm:
$ npm i --save rc-js-util
The global variable DEBUG_MODE
must be set for js-util to function correctly. Setting DEBUG_MODE
to true enables debug assertions. In production builds it is recommended to use a tool such as uglify-js' dead code
removal to strip out all of these checks.
For a full list of debug flags, see IStandardDebugFlags
in the API reference.
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.
FAQs
A collection of strongly typed JS utilities.
The npm package rc-js-util receives a total of 209 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.