Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
escss-estest
Advanced tools
100% function coverage makes your life easier.
npm install escss-estest
like a water filter
function foo() {
{
// unhappy path(throw error here, under {} to be organized)
}
// happy path
}
// operator mode
esTest(1, '<', 5)
esTest(5, '>', 1)
esTest(1, '<=', 5)
esTest(5, '>=', 1)
esTest(1, '!==', 2)
esTest(1, '===', 1)
esTest(1, '===', 100) // error
esTest(1, '===', 100, 'foo') // error & message
// type mode
esTest(1, 'number')
esTest(1n, 'bigint')
esTest('foo', 'string')
esTest(true, 'boolean')
esTest([], 'array')
esTest({}, 'object')
esTest(NaN, 'NaN')
esTest(null, 'null')
esTest(undefined, 'undefined')
esTest(Symbol(), 'symbol')
esTest(function () {}, 'function')
esTest(1, 'object') // error
esTest(1, 'object', 'foo') // error & message
// basic
function sum(a, b, enable) {
{
esTest(a, 'number')
esTest(b, 'number')
}
return a + b
}
// async / await
async function getData() {
const url = "https://jsonplaceholder.typicode.com/todos/1";
const response = await fetch(url);
const json = await response.json();
{
esTest(json.completed, 'boolean')
esTest(json.id, 'number')
esTest(json.title, 'string')
esTest(json.userId, 'number')
}
console.log(json);
}
Dual Licensing( Commercial or AGPL 3.0 ), see here to know more
FAQs
A runtime testing library inspired by TDD and TypeScript to achieve 100% coverage.
The npm package escss-estest receives a total of 504 weekly downloads. As such, escss-estest popularity was classified as not popular.
We found that escss-estest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.