rotrot

1.0.0 • Public • Published

rotrot

Rotate string back and forth

Installation

npm install rotrot

Usage

var rot = require('rotrot');
 
var string = 'Hey-hey';
 
// add 30 to all char codes
var rotated = rot(string, 30);
 
// rotate back char codes to get initial string
var initialString = rot(rotated, -30);

License

MIT

/rotrot/

    Package Sidebar

    Install

    npm i rotrot

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • boo1ean