offtext
Version:
Perform weird actions on your strings
67 lines (45 loc) โข 1.9 kB
Markdown
[](https://github.com/Huskydog9988/offtext/actions)
[](https://www.npmjs.com/package/offtext)
[](http://commitizen.github.io/cz-cli/)
[](https://forthebadge.com)
[](https://forthebadge.com)
[](https://forthebadge.com)
> Convert your ASCII into weird Unicode strings
Offtext converts your traditional text into incongruous text, straight out of a seizure.
```bash
npx offtext randomcase <your text here>
```
You can also install Offtext as a global cli
```bash
npm install -g offtext
offtext gen <your text here>
```
Bash
```bash
offtext randomcase "The Text's CASE is random"
offtext cracked this text is super broken looking..
offtext reverse it has been reversed
```
JS
```js
// CommonJS
const offtext = require('offtext')
// ES6
import * as offtext from 'offtext'
const text = 'some random text'
console.log(offtext.randomCase(text))
// Outputs: soME rAndoM tExt
console.log(offtext.cracked(text))
// Outputs: ยง๐๐๐ ษพฮโ๐ก๐ธ๐ข Tฮฃ๐๏ฝ
console.log(offtext.reverse(text))
// Outputs: txet modnar emos
```
- The randomcase command is the default command, meaning it can be used like: `offtext <your text here>`