Caesar cipher implementation in TypeScript.
npm install @uniiem/caesar!GitHub Actions Workflow Status
!NPM Downloads
!NPM Version (with dist tag)
!npm bundle size
!GitHub License
A simple caesar cipher library.
``bash`
npm install @uniiem/caesar
`typescript
import { encode, decode rot13 } from '@uniiem/caesar';
const encoded = encode('Caesar cipher lib test!', 3);
console.log(encoded); // 'Fdhvdu flskhu ole whvw!'
const decoded = decode(encoded, 3);
console.log(decoded); // 'Caesar cipher lib test!'
const rot13ed = rot13('Caesar cipher lib test!');
console.log(rot13ed); // 'Pnrfne pvcure yvo grkg!'
``