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.0.1 to 0.1.0

jest.config.js

10

package.json
{
"name": "@anselan/maprange",
"version": "0.0.1",
"version": "0.1.0",
"description": "Map values from one range to another",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "npx jest",
"build": "npx tsc"

@@ -16,7 +16,13 @@ },

],
"repository": {
"url": "https://github.com/anselanza/maprange"
},
"author": "Stephen Buchanan",
"license": "ISC",
"devDependencies": {
"@types/jest": "^26.0.15",
"jest": "^26.6.1",
"ts-jest": "^26.4.3",
"typescript": "^4.0.5"
}
}

1

src/index.ts

@@ -16,1 +16,2 @@ const remap = (value: number, start1: number, stop1: number, start2: number, stop2: number, clamp: boolean = false): number => {

export default remap;
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