Socket
Socket
Sign inDemoInstall

between2

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

between2 - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

modules/index copy.js

11

modules/index.js

@@ -56,3 +56,5 @@ 'use strict';

function between(a, b) {
function between() {
var a = arguments[0] === undefined ? between.lo : arguments[0];
var b = arguments[1] === undefined ? between.hi : arguments[1];
var bypassCheck = arguments[2] === undefined ? false : arguments[2];

@@ -69,2 +71,3 @@

var guard = a.length + b.length;
var guard2 = Math.max(a.length, b.length);

@@ -77,6 +80,4 @@ while (i <= guard) {

i++;
var c = chars[_a + 1 < _b || i >= guard2 ? Math.round((_a + _b) / 2) : _a];
var c = chars[_a + 1 < _b ? Math.round((_a + _b) / 2) : _a];
betweenString += c;

@@ -87,2 +88,4 @@

}
i++;
}

@@ -89,0 +92,0 @@

{
"name": "between2",
"version": "0.1.1",
"version": "0.2.0",
"description": "generate arbitary strings that sort between two strings. fork of between.",

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

@@ -66,5 +66,8 @@ # between2 [![Build Status](https://travis-ci.org/Dashed/between2.svg)](https://travis-ci.org/Dashed/between2)

## Credit
Cheers to [@dominictarr](https://github.com/dominictarr) who created the original [`between`](https://github.com/dominictarr/between) module.
## License
MIT
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