
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.
a named arguments parser with a consistent robust protocol for JavaScript; via `folding` argumenets in the sense of the computer language Scheme
A named arguments parser with a consistent robust protocol for JavaScript; via
folding
argumenets in the sense of the computer language Scheme.
function fold_args(
args, // : array of arguments,
default_args, // : array or an object,
transformers_for_args // : array or an object )
const { fold_args } = require( 'fold-args' );
function func( ...args ) {
const nargs = fold_args( args );
console.log( nargs );
}
func( {foo:'FOO'}, {bar:'BAR'} );
> {foo:['FOO'], bar:['BAR']}
const { fold_args } = require( 'fold-args' );
function func( ...args ) {
const nargs = fold_args( args, ['foo','bar'] );
console.log( nargs );
}
// note that foo and bar are not specified.
func( {bum:'bum'} );
// foo and bar are appeared, though.
> {foo:[],bar:[],bum:['bum']}
const { fold_args } = require( 'fold-args' );
const { the_last } = require( 'fold-args' );
function func( ...args ) {
const nargs = fold_args( args, [], [{ foo: the_last }] );
console.log( nargs );
}
func( {foo:'foo'}, {foo:'FOO'} );
> {foo:'FOO'}
Each value in the arguments are processed in a same manner:
(o)=>( typeof o === 'object' ? o : {[Symbol.for(typeof o)] : o });
const o1 = {
'foo' : 1,
};
const o2 = {
'bar' : 2,
},
The processed object is
const processed = {
'foo' : [1],
'bar' : [2],
};
Relased. (Jan 8 2023)
Updated README.md
.
(Jan 8 2023)
Updated README.md
.
(Sun, 08 Jan 2023 17:01:38 +0900)
Thank you very much for your attention.
Atsushi Oka / I'm from Tokyo. For further information, see my github account.
FAQs
a named arguments parser with a consistent robust protocol for JavaScript; via `folding` argumenets in the sense of the computer language Scheme
We found that fold-args 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.