
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
@byte-this/funscript
Advanced tools
This library facilitates functional programming practices by offering:
These will aid in creating and working with immutable objects.
The Clone
function is straightforward: it recursively clones an object and returns the new object:
const newObj = Clone(oldObject);
console.log(oldObject === newObj); //false
If the object has its own clone
method, this function will utilize it. Otherwise, it will do a default recursive clone.
The Lock
function clones an object and freezes all properties on that clone, preventing any further mutation:
const newObj = Lock(oldObject);
console.log(oldObject === newObj); //fales
try {
newObj.property = false;
//if 'strict mode' is not enabled, no error will be thrown
//but the object field will not be updated
} catch (err) {
//an error will be thrown if you have 'strict mode' enabled
//which I recommend you should
}
FunAr: functional asynchronous array, provides asynchronous versions of the common functional array methods in sequential and parallel flavors:
The sequential methods invoke the callback for each item one after another. The parallel methods invoke the callback for each item simultaneously.
//the methods have the same signature as the regular version, except the input array is added as the first argument
const reduced = await FunAr.async.seq.reduce(inputArray, reduceFunction, initialValue);
const mapped = await FunAr.async.parallel.map(inputArray, (item, index) => /*..async*/ return mapped);
Compose multiple functions and assign it to a single variable or execute immediately:
const compositeFunction = Compose(fOne, fTwo, fThree, fFour);
const result = compositeFunction(initialParam, otherParm); //first input function can accept more than one parameter
//async version
const compositeAsyncFunction = ComposeAsync(fOneAsync, fTwoAsync, fThreeAsync);
const result = await compositeAsyncFunction(input);
//dynamic composition
const dynamicComposition = Compose(...arrayOfFunctions);
const result = dynamicComposition();
FAQs
A typescript API which facilitates functional programming.
The npm package @byte-this/funscript receives a total of 9 weekly downloads. As such, @byte-this/funscript popularity was classified as not popular.
We found that @byte-this/funscript 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
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.