Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

modular-scale

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modular-scale - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

10

index.js

@@ -29,2 +29,9 @@ var msBases = [1];

ratios = ratios.map(function(ratio) {
if (typeof ratio === 'string') {
ratio = ratioNames[ratio] || 0
}
return ratio
});
return function ms(value) {

@@ -37,5 +44,2 @@ var r = []

if (typeof value === 'string') {
value = ratioNames[value] || 0
}

@@ -42,0 +46,0 @@ for (ratio = 0; ratio < ratios.length; ratio++) {

{
"name": "modular-scale",
"version": "2.0.0",
"version": "3.0.0",
"description": "Module for generating a modular scale.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,2 +8,10 @@ var mocha = require('mocha'),

it('should use ratio names', function() {
ms = modularScale({
ratios: ['majorTwelfth'],
bases: [1]
})
expect(ms(3)).to.equal(27)
});
it('should return octave scale with multiple bases', function() {

@@ -10,0 +18,0 @@ ms = modularScale({

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc