
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
#fluential
###Make a chained interface for any library
fluential allows you to take an object containing functions, and produce a new object that can be used as a chained/fluent API.
##Usage
var fluential = require('fluential');
var path = require('path');
// Makes a chained version of the library
var fPath = fluential(path);
// Give the chained library an initial value, perform operations, and then take its .value
var myPath = fPath("C:/Users\\j201")
.normalize()
.join("npm", "fluential", "test")
.resolve("../lib.js")
.value; // C:\Users\j201\npm\fluential\lib.js
// A custom property can be used instead of .value
var fMath = fluential(Math, 'amazingResult');
fMath(5)
.sqrt()
.sin()
.pow(3)
.amazingResult; // 0.4869774111455
##Rationale
The most composable functions are those that just map arguments to return values. Those are the kinds of APIs that library developers should be offering, because they're simple, consistent, and give us users the most freedom to manipulate the library functions. And, if we want a different API, tools like this let us use it the way we want. So why should all sorts of library developers each make their own new fluent APIs when we can write one that will work anywhere in less than 50 lines?
##Licence
Licensed under the MIT licence. ©2014 j201
FAQs
Make a chained interface for a library
We found that fluential 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.