Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
tiny-coerce
Advanced tools
String to primitive coercion for Client or Server. It's great for DOM data attributes, localStorage, and other cases where your need to store a String.
import {coerce} from "tiny-coerce";
console.log(coerce("true")); // true
console.log(coerce("null")); // null
console.log(coerce({a: {b: "50"}}, true).a.b) // 50
Tiny Coerce has 100% code coverage with its tests.
-----------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------|---------|----------|---------|---------|-------------------
All files | 100 | 86.2 | 100 | 100 |
tiny-coerce.cjs | 100 | 86.2 | 100 | 100 | 22-24,36
-----------------|---------|----------|---------|---------|-------------------
Returns a coercion of arg
. Deep coercion is optional with the second parameter.
First parameter is trimmed before coercion!
Copyright (c) 2023 Jason Mulligan Licensed under the BSD-3 license
FAQs
Tiny coercion library for Client or Server
The npm package tiny-coerce receives a total of 34 weekly downloads. As such, tiny-coerce popularity was classified as not popular.
We found that tiny-coerce demonstrated a not healthy version release cadence and project activity because the last version was released 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.