Socket
Book a DemoSign in
Socket

strc

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strc - npm Package Compare versions

Comparing version
2.1.0-test.4b
to
2.1.0
+50
-6
dist/jssc.d.ts

@@ -56,4 +56,11 @@ /*

workerLimit?: number,
JSONstring?: boolean,
debug?: boolean
}
/**
* JavaScript String Compressor - decompress options
* @license MIT
* @copyright (c) 2025-2026 JustDeveloper <<https://justdeveloper.is-a.dev>>
* @since 2.1.0
*/
export interface decompressOptions {

@@ -63,2 +70,39 @@ stringify?: boolean,

}
/**
* JavaScript String Compressor - debug output
* @license MIT
* @copyright (c) 2025-2026 JustDeveloper <<https://justdeveloper.is-a.dev>>
* @since 2.1.0
*/
export interface JSSCCompressedDebug {
string: string,
header: {
code: number,
bin: string,
blocks: [string, "0"|"1", string, "0"|"1", "0"|"1", "0"|"1", string],
code1: string,
code2: string,
code3: string,
s: boolean,
i: boolean,
o: boolean,
b: boolean
},
mode: {
id: number,
name: string
}
}
/**
* JavaScript String Compressor - debug output
* @license MIT
* @copyright (c) 2025-2026 JustDeveloper <<https://justdeveloper.is-a.dev>>
* @since 2.1.0
*/
export interface JSSCDebug {
input: string|object|number|JSSCCompressedDebug,
output: string|object|number|JSSCCompressedDebug,
options: compressOptions | decompressOptions,
workers: boolean
}

@@ -73,3 +117,3 @@ /**

*/
export function compress(str: string, options?: compressOptions): Promise<string>;
export function compress(str: string, options?: compressOptions): Promise<string|JSSCDebug>;
/**

@@ -84,3 +128,3 @@ * JavaScript String Compressor - compress function

*/
export function compress(obj: object, options?: compressOptions): Promise<string>;
export function compress(obj: object, options?: compressOptions): Promise<string|JSSCDebug>;
/**

@@ -94,3 +138,3 @@ * JavaScript String Compressor - compress function

*/
export function compress(int: number, options?: compressOptions): Promise<string>;
export function compress(int: number, options?: compressOptions): Promise<string|JSSCDebug>;

@@ -105,3 +149,3 @@ /**

*/
export function decompress(str: string): Promise<object|number|string>;
export function decompress(str: string): Promise<object|number|string|JSSCDebug>;
/**

@@ -116,3 +160,3 @@ * JavaScript String Compressor - decompress function

*/
export function decompress(str: string, stringify: true): Promise<string>;
export function decompress(str: string, stringify: true): Promise<string|JSSCDebug>;
/**

@@ -126,3 +170,3 @@ * JavaScript String Compressor - decompress function

*/
export function decompress(str: string, options?: decompressOptions): Promise<object|number|string>;
export function decompress(str: string, options?: decompressOptions): Promise<object|number|string|JSSCDebug>;

@@ -129,0 +173,0 @@ /**

+1
-1
{
"name": "strc",
"version": "2.1.0-test.4b",
"version": "2.1.0",
"description": "JavaScript String Compressor - lossless string compression algorithm",

@@ -5,0 +5,0 @@ "main": "dist/jssc.cjs",

@@ -12,3 +12,3 @@ ![JSSC](.github/image.png)

⚠️ **Compatibility Notice:** Compressed strings from v1.x.x are **not compatible** with v2.x.x due to header and encoding changes. JSSC follows Semantic Versioning: successful decompression is guaranteed only if the decompressor version is equal to or newer than the compressor version (within the same major version).
> ⚠️ **Compatibility Notice:** Compressed strings from v1.x.x are **not compatible** with v2.x.x due to header and encoding changes. JSSC follows Semantic Versioning: successful decompression is guaranteed only if the decompressor version is equal to or newer than the compressor version (within the same major version).

@@ -58,2 +58,3 @@ ## Key Features

- [utf8.js](https://github.com/mathiasbynens/utf8.js) by [Mathias Bynens](https://mathiasbynens.be/)
<br>

@@ -64,2 +65,3 @@ JSSC CLI and Format Handling (`.jssc`) depends on:

- [uint8arrays](https://www.npmjs.com/package/uint8arrays) by [Alex Potsides](https://github.com/achingbrain)
<br>

@@ -66,0 +68,0 @@ > **Note:** All dependencies (except **JUSTC**) are bundled into the final build.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display