js-encoding-utils
Version:
Miscellaneous Encoding Utilities for Crypto-related Objects in JavaScript
496 lines (495 loc) • 11.8 kB
JSON
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "webpack.baseconfig.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/encoder.ts",
"declarations": [
{
"kind": "function",
"name": "encodeBase64",
"return": {
"type": {
"text": "*"
}
},
"parameters": [
{
"name": "data",
"type": {
"text": "string|ArrayBuffer|TypedArray"
}
}
],
"description": "Encode ArrayBuffer or TypedArray To Base64"
},
{
"kind": "function",
"name": "decodeBase64",
"return": {
"type": {
"text": "Uint8Array|string|*"
}
},
"parameters": [
{
"name": "str",
"type": {
"text": "string"
}
}
],
"description": "Decode Base64 to Uint8Array"
},
{
"kind": "function",
"name": "encodeBase64Url",
"return": {
"type": {
"text": "string"
}
},
"parameters": [
{
"name": "data",
"type": {
"text": "ArrayBuffer|Uint8Array"
}
}
],
"description": "Encode ArrayBuffer or TypedArray to base64url string"
},
{
"kind": "function",
"name": "decodeBase64Url",
"parameters": [
{
"name": "str",
"type": {
"text": "string"
}
}
],
"description": "Decode Base64Url string to Uint8Array",
"return": {
"type": {
"text": "Uint8Array"
}
}
},
{
"kind": "function",
"name": "arrayBufferToHexString",
"return": {
"type": {
"text": "string"
}
},
"parameters": [
{
"name": "data",
"type": {
"text": "ArrayBuffer|TypedArray"
}
}
],
"description": "Encode ArrayBuffer or TypedArray to hex string"
},
{
"kind": "function",
"name": "hexStringToArrayBuffer",
"return": {
"type": {
"text": "Uint8Array"
}
},
"parameters": [
{
"name": "str",
"type": {
"text": "string"
}
}
],
"description": "Decode hex string to Uint8Array"
},
{
"kind": "function",
"name": "arrayBufferToString",
"return": {
"type": {
"text": "string"
}
},
"parameters": [
{
"name": "data",
"type": {
"text": "ArrayBuffer|TypedArray"
}
}
],
"description": "Encode ArrayBuffer or TypedArray to string with code (like output of legacy atob)"
},
{
"kind": "function",
"name": "stringToArrayBuffer",
"return": {
"type": {
"text": "Uint8Array"
}
},
"parameters": [
{
"name": "str",
"type": {
"text": "string"
}
}
],
"description": "Decode string with code (like output of legacy atob) to Uint8Array"
}
],
"exports": [
{
"kind": "js",
"name": "encodeBase64",
"declaration": {
"name": "encodeBase64",
"module": "src/encoder.ts"
}
},
{
"kind": "js",
"name": "decodeBase64",
"declaration": {
"name": "decodeBase64",
"module": "src/encoder.ts"
}
},
{
"kind": "js",
"name": "encodeBase64Url",
"declaration": {
"name": "encodeBase64Url",
"module": "src/encoder.ts"
}
},
{
"kind": "js",
"name": "decodeBase64Url",
"declaration": {
"name": "decodeBase64Url",
"module": "src/encoder.ts"
}
},
{
"kind": "js",
"name": "arrayBufferToHexString",
"declaration": {
"name": "arrayBufferToHexString",
"module": "src/encoder.ts"
}
},
{
"kind": "js",
"name": "hexStringToArrayBuffer",
"declaration": {
"name": "hexStringToArrayBuffer",
"module": "src/encoder.ts"
}
},
{
"kind": "js",
"name": "arrayBufferToString",
"declaration": {
"name": "arrayBufferToString",
"module": "src/encoder.ts"
}
},
{
"kind": "js",
"name": "stringToArrayBuffer",
"declaration": {
"name": "stringToArrayBuffer",
"module": "src/encoder.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/env.ts",
"declarations": [
{
"kind": "function",
"name": "getEnvBtoa",
"description": "this module handles the difference between window (browser) and node js for specific functions and libraries.\nenv.js"
},
{
"kind": "function",
"name": "getEnvAtob"
}
],
"exports": [
{
"kind": "js",
"name": "getEnvBtoa",
"declaration": {
"name": "getEnvBtoa",
"module": "src/env.ts"
}
},
{
"kind": "js",
"name": "getEnvAtob",
"declaration": {
"name": "getEnvAtob",
"module": "src/env.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/formatter.ts",
"declarations": [
{
"kind": "function",
"name": "pemToBin",
"return": {
"type": {
"text": "Uint8Array"
}
},
"parameters": [
{
"name": "keydataB64Pem",
"type": {
"text": "string"
}
}
],
"description": "Convert PEM armored string to Uint8Array"
},
{
"kind": "function",
"name": "binToPem",
"parameters": [
{
"name": "keydata",
"type": {
"text": "ArrayBuffer|TypedArray"
}
},
{
"name": "type",
"type": {
"text": "SupportedPemTypes"
}
}
],
"description": "Convert ArrayBuffer or TypedArray to PEM armored string with a specified type",
"return": {
"type": {
"text": "string"
}
}
}
],
"exports": [
{
"kind": "js",
"name": "pemToBin",
"declaration": {
"name": "pemToBin",
"module": "src/formatter.ts"
}
},
{
"kind": "js",
"name": "binToPem",
"declaration": {
"name": "binToPem",
"module": "src/formatter.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/index.ts",
"declarations": [
{
"kind": "variable",
"name": "encodeBase64"
},
{
"kind": "variable",
"name": "decodeBase64"
},
{
"kind": "variable",
"name": "encodeBase64Url"
},
{
"kind": "variable",
"name": "decodeBase64Url"
},
{
"kind": "variable",
"name": "arrayBufferToHexString"
},
{
"kind": "variable",
"name": "hexStringToArrayBuffer"
},
{
"kind": "variable",
"name": "stringToArrayBuffer"
},
{
"kind": "variable",
"name": "arrayBufferToString"
},
{
"kind": "variable",
"name": "binToPem"
},
{
"kind": "variable",
"name": "pemToBin"
}
],
"exports": [
{
"kind": "js",
"name": "encodeBase64",
"declaration": {
"name": "encodeBase64",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "decodeBase64",
"declaration": {
"name": "decodeBase64",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "encodeBase64Url",
"declaration": {
"name": "encodeBase64Url",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "decodeBase64Url",
"declaration": {
"name": "decodeBase64Url",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "arrayBufferToHexString",
"declaration": {
"name": "arrayBufferToHexString",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "hexStringToArrayBuffer",
"declaration": {
"name": "hexStringToArrayBuffer",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "stringToArrayBuffer",
"declaration": {
"name": "stringToArrayBuffer",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "arrayBufferToString",
"declaration": {
"name": "arrayBufferToString",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "binToPem",
"declaration": {
"name": "binToPem",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "pemToBin",
"declaration": {
"name": "pemToBin",
"module": "src/index.ts"
}
},
{
"kind": "js",
"name": "default",
"declaration": {
"module": "src/index.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "test/encoder.spec.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "test/formatter.spec.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "test/prepare.ts",
"declarations": [
{
"kind": "function",
"name": "getTestEnv",
"description": "prepare.ts"
}
],
"exports": [
{
"kind": "js",
"name": "getTestEnv",
"declaration": {
"name": "getTestEnv",
"module": "test/prepare.ts"
}
}
]
}
]
}