1.1.4 • Published 12 months ago

chimpers-web v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

chimpers-web

Web version chimpers to Hide files / zip / images in text by hidden format. Works in React / Svelte

Web Demo | chimpers npm | chimpers-web npm | Github

Install

npm i chimpers-web
yarn add chimpers-web

Notices

  1. Hidden file is not encrypted currently.
  2. Do not attempt to hide large file.
  3. Single file that smaller than 4kb is recommended.

Usage

import { addFileInText, decodeFileInText } from "chimpers-web"

( async () => {

    const file: File = new File() // Or File that read from <input type"file">
    const encodedString: string = await addFileInText("Hello world", file);

    const fileArray: Uint8Array = decodeFileInText(encodedString);

})()

Utilis

// Hide files in text
export async function addFileInText(
    encodingString: string, // Text to add files
    file: File,             // Your txt / zip / file 
): Promise<string> 


// decode encoded string
export function decodeFileInText(
    encodedText: string, 
): Uint8Array
1.1.1

12 months ago

1.1.0

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago