
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@deep-trace/boolean-like
Advanced tools
Simple helper function to cast a value into boolean.
npm install boolean-like
given value | casted value |
---|---|
undefined | false |
null | false |
false | false |
0 | false |
"" | false |
"false" | false |
true | true |
1 | true |
"true" | true |
const blike = require('boolean-like')
const config = {
enabled: blike(process.env.IS_ENABLED || false)
}
if (!config.enabled) {
console.error('the variable was evaluated to `false`')
process.exit(1)
}
console.log('the variable was evaluated to `true`')
$ IS_ENABLED=1 node ./sample.js
the variable was evaluated to `true`
$ IS_ENABLED=false node ./sample.js
the variable was evaluated to `false`
FAQs
Simple helper function to properly cast a value into boolean.
The npm package @deep-trace/boolean-like receives a total of 0 weekly downloads. As such, @deep-trace/boolean-like popularity was classified as not popular.
We found that @deep-trace/boolean-like demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.