bb26 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/random.js +0 -1
- package/dist/range.js +0 -1
- package/package.json +5 -5
- package/readme.md +6 -5
package/dist/random.js
CHANGED
package/dist/range.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bb26",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Utilities for working with bijective base-26 numerals",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base 26",
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
"spreadsheet column letters",
|
|
12
12
|
"license plate serials"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://github.com/
|
|
14
|
+
"homepage": "https://github.com/patrik-csak/BB26#readme",
|
|
15
15
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/
|
|
16
|
+
"url": "https://github.com/patrik-csak/BB26/issues"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"author": "Patrik Csak <p@trikcsak.com>",
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
|
-
"repository": "github:
|
|
23
|
+
"repository": "github:patrik-csak/BB26",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "del-cli dist && tsc",
|
|
26
26
|
"format": "xo --fix",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"del-cli": "^5.0.0",
|
|
40
40
|
"ts-node": "^10.4.0",
|
|
41
41
|
"typescript": "^5.0.2",
|
|
42
|
-
"xo": "^0.
|
|
42
|
+
"xo": "^0.54.1"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=14 <=19"
|
package/readme.md
CHANGED
|
@@ -19,7 +19,8 @@ Decimal: | 1 | 2 | 3 | ... | 24 | 25 | 26 | 27 | 28 | 29 | ...
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
21
21
|
> **Note**
|
|
22
|
-
>
|
|
22
|
+
>
|
|
23
|
+
> This package is a native ECMAScript Module (ESM). If your project is not ESM, read [Sindre Sorhus’s Pure ESM package article](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
|
|
23
24
|
|
|
24
25
|
```sh
|
|
25
26
|
npm install bb26
|
|
@@ -46,8 +47,8 @@ increment("AA"); // 'AB'
|
|
|
46
47
|
### `random()`
|
|
47
48
|
|
|
48
49
|
```ts
|
|
49
|
-
function random(upper: string): string
|
|
50
|
-
function random(lower: string, upper: string): string
|
|
50
|
+
function random(upper: string): string;
|
|
51
|
+
function random(lower: string, upper: string): string;
|
|
51
52
|
```
|
|
52
53
|
|
|
53
54
|
Produces a random string between the inclusive `lower` and `upper` bounds. If only one argument is provided, a string between `'A'` and the given string is returned.
|
|
@@ -62,8 +63,8 @@ random("AAA", "AAAA"); // 'KXZ'
|
|
|
62
63
|
### `range()`
|
|
63
64
|
|
|
64
65
|
```ts
|
|
65
|
-
function range(end: string): string[]
|
|
66
|
-
function range(start: string, end: string): string[]
|
|
66
|
+
function range(end: string): string[];
|
|
67
|
+
function range(start: string, end: string): string[];
|
|
67
68
|
```
|
|
68
69
|
|
|
69
70
|
Creates an array of bijective base-26 numerals progressing from `start` up to, but not including, `end`. If `end` is not specified, it's set to `start` with `start` then set to `'A'`.
|