
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
modular-scale
Advanced tools
Module for generating a modular scale.
npm i modular-scale --save
var ModularScale = require('modular-scale')
var ms = ModularScale({
ratio: ModularScale.ratios.goldenSection,
base: '16px'
})
// Get a step up from the base font size in the scale
ms(4) // 109.656
// Get a step down from the base font size in the scale
ms(-1) // 9.889
// Get a rem or em relative value
ms(4, true) // 6.854
// Get an array of steps for use as pixel measurements
ms.steps(6) // [ 67.773, 41.887, 25.888, 16, 9.889, 6.112, 3.777 ]
// Also can return relative values for use with em, rem etc.
ms.steps(6, true) // [ 4.236, 2.618, 1.618, 1, 0.618, 0.382, 0.236 ]
FAQs
Module for generating a modular scale.
The npm package modular-scale receives a total of 112 weekly downloads. As such, modular-scale popularity was classified as not popular.
We found that modular-scale 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.