
Security News
New Study Identifies 53 Slopsquatting Targets Across 5 Frontier LLMs
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.
Automatically extract pure functions from your javascript code for unit testing.
npm install --save purefuncs
Given:
// file: src/example.js
import {asd, boo} from 'asd'
import math from 'somewhere'
const z = 2;
function foo() {
const x = 3 + z;
function bla() {
const f = 5 + asd;
return x + 1;
}
function tada() {
return x + math.sin(x);
}
}
Run :
$ purefuncs src/example.js -o test/purefuncs/example.js
Output:
// file: test/purefuncs/example.js
export const foo = ({asd, math, z}) => () => {
const x = 3 + z;
function bla() {
const f = 5 + asd;
return x + 1;
}
function tada() {
return x + math.sin(x);
}
}
export const foo$bla = ({asd, x}) => () => {
const f = 5 + asd;
return x + 1;
}
export const foo$tada = ({math, x}) => () => {
return x + math.sin(x);
}
MIT
FAQs
Extract pure functions from javascript code for unit testing
The npm package purefuncs receives a total of 2 weekly downloads. As such, purefuncs popularity was classified as not popular.
We found that purefuncs 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.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.

Security News
The White House’s Gold Eagle Initiative aims to coordinate AI-discovered vulnerabilities, validate findings, and accelerate patching across critical software.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.