Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@travi/any
Advanced tools
Random data generator for when test data is insignificant. Tailoring data too closely for the domain can end up being confusing in tests because it distracts from the behavior that is actually important in the test. This is why I prefer to make it very clear when test data is insignificant by using a data generator. This library captures most of the patterns I use frequently.
To save myself from needing to maintain the actual data generators, this library leverages Chance.js for generating the data. So why not just use Chance.js directly?
$ npm install @travi/any --save-dev
$ nvm install
$ npm install
$ npm test
When making changes to the API, these changes must be reflected in the types
file (index.d.ts
). This library uses tsd
to test the types. These tests
can be found at index.d-test.ts
. As you make changes to the API, first update
index.d-test.ts
with the expected results, then update index.d.ts
with
the appropriate types to satisfy the tests.
FAQs
random data generator for when test data is insignificant
The npm package @travi/any receives a total of 8,617 weekly downloads. As such, @travi/any popularity was classified as popular.
We found that @travi/any 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.