
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.
vandium-utils
Advanced tools
Common utility functions used throughout the vandium projects.
Install via npm.
npm install vandium-utils --save
clone( obj )
Clones an object. If the value is not an object or null
then the existing value
is returned.
dateToISOString( data, milliseconds = false )
Creates an ISO string for a given date.
isArray( value )
Determines if a values is an array. This implementation uses Array.isArray()
.
isFunction( value )
Determines if a value is a function.
isNullOrUndefined( value )
Determines if a value is null
or undefined
.
isObject( value )
Determines if a value is an Object
.
isObjectEmpty( obj )
Determines if the object is empty
isPromise( value )
Determines if a value is a Promise
isString( value )
Determines if a value is a string
parseBoolean( value )
Parses a value to a boolean result. Values can be:
true
, false
templateString( template, obj )
Creates a string from a template
and substitutes values from obj
.
const { templateString } = require( 'vandium-utils' );
// str1 = "Hello Fred"
let str1 = templateString( 'Hello ${name}', { name: 'Fred' } );
// str2 = "Hello Fred, I see you live in Toronto"
let str = templateString( 'Hello ${name}, I see you live in ${place.city}', {
name: 'Fred',
place: {
city: 'Toronto'
}
});
We'd love to get feedback on how to make this tool better. Feel free to contact us at feedback@vandium.io
2.0.0 (2019-11-23)
Updated:
Internal:
FAQs
vandium common utility functions
The npm package vandium-utils receives a total of 37,576 weekly downloads. As such, vandium-utils popularity was classified as popular.
We found that vandium-utils 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.