UNPKG

@easy-cipher/caesar

Version:

[![npm](https://img.shields.io/npm/v/@easy-cipher/caesar.svg)](https://www.npmjs.com/package/@easy-cipher/caesar) [![npm bundle size (minified + gzip)](https://badgen.net/bundlephobia/minzip/@easy-cipher/caesar)](https://bundlephobia.com/result?p=@easy-ci

11 lines (10 loc) 481 B
import type { CoreOptions } from '@easy-cipher/core'; declare type CaesarOptions = { encryptionOffset: number; alphabet?: string[]; } & Omit<CoreOptions, 'mappings'>; declare const caesar: ({ encryptionOffset, alphabet, ciphertextWordsSeparator, ciphertextCharactersSeparator, plaintextWordsSeparator, plaintextCharactersSeparator, }: CaesarOptions) => { encode: import("@easy-cipher/core").Encode; decode: import("@easy-cipher/core").Decode; }; export { caesar };