Socket
Socket
Sign inDemoInstall

@thi.ng/base-n

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/base-n - npm Package Compare versions

Comparing version 2.1.3 to 2.2.0

8.d.ts

2

16.d.ts

@@ -0,1 +1,3 @@

export declare const B16_UC_CHARS = "0123456789ABCDEF";
export declare const B16_LC_CHARS = "0123456789abcdef";
/**

@@ -2,0 +4,0 @@ * Digits: 0-9 A-F

6

16.js
import { defBase } from "./base.js";
export const B16_UC_CHARS = "0123456789ABCDEF";
export const B16_LC_CHARS = "0123456789abcdef";
/**
* Digits: 0-9 A-F
*/
export const BASE16_UC = defBase("0123456789ABCDEF");
export const BASE16_UC = defBase(B16_UC_CHARS);
/**
* Digits: 0-9 a-f
*/
export const BASE16_LC = defBase("0123456789abcdef");
export const BASE16_LC = defBase(B16_LC_CHARS);

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

export declare const B85_CHARS: string;
/**

@@ -2,0 +3,0 @@ * Reference: https://en.wikipedia.org/wiki/Ascii85

import { B62_CHARS } from "./62.js";
import { defBase } from "./base.js";
const B85_CHARS = B62_CHARS + "!#$%&()*+-;<=>?@^_`{|}~";
export const B85_CHARS = B62_CHARS + "!#$%&()*+-;<=>?@^_`{|}~";
/**

@@ -5,0 +5,0 @@ * Reference: https://en.wikipedia.org/wiki/Ascii85

@@ -8,3 +8,3 @@ export interface IBase {

*
* @param x
* @param x -
*/

@@ -15,3 +15,3 @@ encode(x: number): string;

*
* @param x
* @param x -
*/

@@ -22,3 +22,3 @@ encodeBigInt(x: bigint): string;

*
* @param buf
* @param buf -
*/

@@ -30,3 +30,3 @@ encodeBytes(buf: Uint8Array): string;

*
* @param x
* @param x -
*/

@@ -37,3 +37,3 @@ decode(x: string): number;

*
* @param x
* @param x -
*/

@@ -47,3 +47,3 @@ decodeBigInt(x: string): bigint;

*
* @param buf
* @param buf -
*/

@@ -50,0 +50,0 @@ decodeBytes(x: string, buf: Uint8Array): Uint8Array;

# Change Log
- **Last updated**: 2021-12-13T10:25:59Z
- **Last updated**: 2022-03-11T12:13:49Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,8 @@

## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/base-n@2.2.0) (2022-03-11)
#### 🚀 Features
- add octal support, export char strings ([0c0dac6](https://github.com/thi-ng/umbrella/commit/0c0dac6))
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/base-n@2.1.0) (2021-11-17)

@@ -14,0 +20,0 @@

export * from "./api.js";
export * from "./base.js";
export * from "./8.js";
export * from "./16.js";

@@ -4,0 +5,0 @@ export * from "./32.js";

export * from "./api.js";
export * from "./base.js";
export * from "./8.js";
export * from "./16.js";

@@ -4,0 +5,0 @@ export * from "./32.js";

{
"name": "@thi.ng/base-n",
"version": "2.1.3",
"version": "2.2.0",
"description": "Arbitrary base-n conversions w/ presets for base16/32/36/58/62/64/85, support for arrays & bigints",

@@ -37,11 +37,11 @@ "type": "module",

"dependencies": {
"@thi.ng/hex": "^2.1.3"
"@thi.ng/hex": "^2.1.4"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.19.2",
"@thi.ng/testament": "^0.2.3",
"@microsoft/api-extractor": "^7.19.4",
"@thi.ng/testament": "^0.2.4",
"rimraf": "^3.0.2",
"tools": "^0.0.1",
"typedoc": "^0.22.10",
"typescript": "^4.5.3"
"typedoc": "^0.22.13",
"typescript": "^4.6.2"
},

@@ -97,2 +97,5 @@ "keywords": [

},
"./8": {
"import": "./8.js"
},
"./85": {

@@ -111,3 +114,3 @@ "import": "./85.js"

},
"gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
"gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
}

@@ -53,3 +53,3 @@ <!-- This file is generated - DO NOT EDIT! -->

Package sizes (gzipped, pre-treeshake): ESM: 838 bytes
Package sizes (gzipped, pre-treeshake): ESM: 874 bytes

@@ -100,2 +100,2 @@ ## Dependencies

&copy; 2017 - 2021 Karsten Schmidt // Apache Software License 2.0
&copy; 2017 - 2022 Karsten Schmidt // Apache Software License 2.0
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