
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
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.
@sctg/scientific-notation
Advanced tools
A TypeScript library for converting numbers to various scientific notation formats
A TypeScript library for formatting numbers in various scientific notation representations including HTML, LaTeX, and MathML.
1.23e6)1.23 \times 10^{6})<math><mrow><mn>1.23</mn><mo>×</mo><msup><mn>10</mn><mn>6</mn></msup></mrow></math>)1.23 × 10<sup>6</sup>)npm install @sctg/scientific-notation
import { ScientificNotation } from '@sctg/scientific-notation';
// Basic usage
const number = 1234567.89;
const precision = 4;
// Standard scientific notation
console.log(ScientificNotation.toScientificNotationString(number, precision));
// Output: "1.235e6"
// LaTeX format
console.log(ScientificNotation.toScientificNotationLatex(number, precision));
// Output: "1.235 \times 10^{6}"
// HTML format
console.log(ScientificNotation.toScientificNotationHTML(number, precision));
// Output: "1.235 × 10<sup>6</sup>"
// MathML format
console.log(ScientificNotation.toScientificNotationMathML(number, precision));
// Output: "<math><mrow><mn>1.235</mn><mo>×</mo><msup><mn>10</mn><mn>6</mn></msup></mrow></math>"
toScientificNotation(value: number, precision?: number): ScientificNotationNumberConverts a number to scientific notation components.
const result = ScientificNotation.toScientificNotation(1234.56, 3);
// Returns: { mantissa: 1.23, exponent: 3 }
toScientificNotationString(value: number, precision?: number): stringReturns a string representation in scientific notation.
toScientificNotationLatex(value: number, precision?: number): stringReturns a LaTeX formatted string.
toScientificNotationMathML(value: number, precision?: number): stringReturns a MathML formatted string.
toScientificNotationHTML(value: number, precision?: number): stringReturns an HTML formatted string.
type ScientificNotationNumber = {
mantissa: number; // The coefficient
exponent: number; // The power of 10
};
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)Copyright (c) 2024-2025 Ronan LE MEILLAT
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
Ronan LE MEILLAT
SCTG Development
FAQs
A TypeScript library for converting numbers to various scientific notation formats
We found that @sctg/scientific-notation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
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.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.