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

@anselan/maprange

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anselan/maprange - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

README.md

5

package.json
{
"name": "@anselan/maprange",
"version": "0.1.0",
"version": "0.1.1",
"description": "Map values from one range to another",

@@ -8,3 +8,4 @@ "main": "index.js",

"test": "npx jest",
"build": "npx tsc"
"build": "npm run test && npx tsc",
"prepare": "npm run build"
},

@@ -11,0 +12,0 @@ "keywords": [

@@ -11,2 +11,8 @@ import remap from '.'

test('0.1 is 10%', () => {
const value = 0.1;
const result = remap(value, 0, 1, 0, 100);
expect(result).toBe(10);
})
})
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