1.0.0 • Published 5 years ago

@asmartbear/between v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Between

Generates a string that sorts between two other strings.

Useful for things like CRDT

Usage

import { between } from '@asmartbear/between';

let foo = between( 'abcdef', 'abcdfe' );
assert( 'abcdef' < foo );
assert( 'abcdfe' > foo );
assert( 'abcdep' === foo );     // this might not be the exact string, but something like this
1.0.0

5 years ago

0.1.2

5 years ago

0.1.3

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago