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

permutation-rank

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

permutation-rank - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

10

package.json
{
"name": "permutation-rank",
"version": "0.1.1",
"version": "1.0.0",
"description": "Ranks and unranks permutations",

@@ -10,10 +10,10 @@ "main": "index.js",

"dependencies": {
"invert-permutation": "~0.1.0",
"typedarray-pool": "~0.1.1"
"invert-permutation": "^1.0.0",
"typedarray-pool": "^1.0.0"
},
"devDependencies": {
"tap": "~0.4.0"
"tape": "^2.12.3"
},
"scripts": {
"test": "tap test/*.js"
"test": "tape test/*.js"
},

@@ -20,0 +20,0 @@ "repository": {

@@ -28,3 +28,3 @@ permutation-rank

`require("permutation-rank").rank(permutation)`
`prank.rank(permutation)`
-----------------------------------------------

@@ -38,3 +38,3 @@ Computes an integer representing the colexicographic rank of the permutation

`require("permutation-rank").unrank(length, rank[, result])`
`prank.unrank(length, rank[, result])`
--------------------------------------------------

@@ -41,0 +41,0 @@ Computes a permutation from a rank order with the given length

@@ -1,2 +0,2 @@

var test = require("tap").test
var test = require("tape")
, rank = require("../index.js").rank

@@ -3,0 +3,0 @@ , unrank = require("../index.js").unrank

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