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

generate arbitary strings that sort between two strings. fork of between.


Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

between2 Build Status

between2 is fork of between

Usage

$ npm install --save between2

API

between(a, b)

const between  = require('between');
const tween = between('a', 'b');

//tween is a string that will sort between 'a' and 'b'.

a and b can be any string that does not end in the lowest character. this is like how there is only one number between 0 and 1 that ends in a "0".

NOTE: By default, the following characters are used to generate the string:

!0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~

after(a)

Generate string that sorts between a and between.hi.

before(a)

Generate string that sorts between between.lo and a.

trim(a)

Trim between.lo characters to the right of a.

strord(a)

TBA

randstr(len)

Generate random string with length len.

inject(chars)

Create instance of between using characters from chars.

between.lo and between.hi

the top most string possible, and the lowest string possible. You must not be used as positions for items, because it will not be possible to insert items after or before them. These values represent the space infront of the first item, and the space between the last item.

License

MIT

Keywords

FAQs

Package last updated on 31 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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