
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
excel-formula
Advanced tools
Excel Formula Utilities for JavaScript is a library that can be used to pretty print excel formulas or convert excel formulas into JavaScript. The JavaScript generated by this library will not execute on it's own. You'll need to include something like formula.js to cover all the functions from Excel.
##Install using npm npm install excel-formula
Grab the latest js files in the dist folder.
<script src="excel-formula.js" />
<script>
var formattedFormula = excelFormulaUtilities.formatFormulaHTML('IF(1+1=2,"true","false")');
alert(formattedFormula)
</script>
var formula = require('excel-formula');
var formattedFormula = formula.formatFormula('IF(1+1=2,"true","false")');
console.log(formatFormula);
See basic usage above.
formula.getTokens (formula);
formula.formatFormula (formula, [opts])
formula.toJavaScript(formula)
formula.toCSharp(formula)
excelFormulaUtilities is a global variable.
excelFormulaUtilities.getTokens (formula);
excelFormulaUtilities.formatFormula (formula, [opts]) // This will work fine in a pre tag
excelFormulaUtilities.formatFormulaHTML(formula) // Use this if you want the output as html.
excelFormulaUtilities.formula2JavaScript(formula)
excelFormulaUtilities.formula2CSharp(formula)
FAQs
Methods to beautify an excel formula and convert it to JavaScript or C#
The npm package excel-formula receives a total of 1,135 weekly downloads. As such, excel-formula popularity was classified as popular.
We found that excel-formula 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.