
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@abasb75/fraction
Advanced tools
add to your node js project :
npm install @abasb75/fraction --save
import {compute , parse , renderTree} from '@abasb75/fraction';
const computeTest = compute('2+4');
console.log(computeTest);
//result : 6
const computeTest2 = compute('(2+4)/3',()=>{});
console.log(computeTest2);
//result : 2
const computeTest3 = compute('2/5*6/7',()=>{
// this function execute when error occurred
console.log('error')
});
console.log(computeTest3);
//result : 0.34285714285714286
const parseTest = parse('2+4',()=>{});
console.log(parseTest);
/*
result :
{
type: 'plus',
a: { type: 'number', value: '2' },
b: { type: 'number', value: '4' }
}
*/
const renderTreeTest = renderTree('2+4',()=>{});
console.log(renderTreeTest);
/*
result :
+
├─ 2
└─ 4
}
*/
const parseInValid = parse('(3+',()=>{
console.log('an error occurred')
})
//result : an error occurred
FAQs
formula computer
We found that @abasb75/fraction 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
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.