h-inator
Version:
Replace every character in a string with h.
26 lines (20 loc) • 479 B
Markdown
h-inator
Replaces every character with a string with h.
That's all there is to it.
# Installation
```
npm i h-inator
```
# Usage & Example
```
const h = require('h-inator');
let str = 'I love cupcakes.';
let hStr = h(str);
console.log(hStr); // 'h hhhh hhhhhhhh.'
```
# Options
| FIELD | TYPE | DESCRIPTION |
|:------|:-------:|:-----------------------:|
| str | string | the string to replace. |
***
Made with <3 by Lily :)