Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@japhet-dev/lotide
Advanced tools
A mini clone of the Lodash library.
BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.
This project was created and published by me as part of my learnings at Lighthouse Labs.
Install it:
npm install @japhet-dev/lotide
Require it:
const _ = require('@japhet-dev/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
The following functions are currently implemented:
assertArraysEqual(actual, expected)
: takes in two arrays and prints if they are equal or not.assertEqual(actual, expected)
: takes in two values and prints if they are strictly equal or not.assertObjectsEqual(actual, expected)
: takes in two objects and prints if they are equal or not.countLetters(sentence)
: takes in a sentence (as a string) and then returns a count of each of the letters in that sentence.countOnly(allItems, itemsToCount)
: takes in a collection of items and returns counts for a specific subset of those items.eqArrays(array1, array2)
: compares two arrays for a perfect match.eqObjects(object1, object2)
: takes in two objects and returns true or false, based on a perfect match.findKey(obj, callback)
: scans the object and return the first key for which the callback returns a truthy value.findKeyByValue(object, value)
: scans the object and returns the first key which contains the given value.head(arr)
: retrieves the first element from the array.letterPositions(sentence)
: returns all the indices (zero-based positions) in the string where each character is found.map(array, callback)
: returns a new array based on the results of the callback function.middle(arr)
: takes in an array and return the middle-most element(s) of the given array.tail(arr)
: retrieves every element except the head (first element) of the array.takeUntil(array, callback)
: keeps collecting items from a provided array until the callback provided returns a truthy value.without(source, itemsToRemove)
: returns a new array with only those elements from source that are not present in the itemsToRemove array.FAQs
A mini clone of the Lodash (https://lodash.com) library.
The npm package @japhet-dev/lotide receives a total of 0 weekly downloads. As such, @japhet-dev/lotide popularity was classified as not popular.
We found that @japhet-dev/lotide 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
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.