1.0.0 • Published 5 years ago

sbify v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

String 🅱'ify (Sbify)

It's about time you im🅱roved your strings

Why?

🅱ecause why not? It's almost 2019. We needed a lightweight and deadsimple solution that worked for browsers and NodeJS a long time ago.

(This package replaces b's and starts of words with "b" emojis)

Usage

Node:

const b = require('sbify');

b('Hello, world!') === '🅱ello, 🅱orld!'
b('Sbify is the best package!') === '🅱🅱ify 🅱s 🅱he 🅱est 🅱ackage!'

Other replacement characters or emojis are supported

b('Hello, world!', 'bbb') === 'bbbello, bbborld!'
b('This package is #TheBest!', '🦆') === '🦆his 🦆ackage 🦆s #🦆he🦆est!'

Browser:

Simple npm install and add the index.js script onto your site. Index.js was built by browserify --standalone, so you'll be able to access window.sbify as a function.

<script>
    console.log(sbify('Hello, world!'));
</script>

Enjoy this package? Consider starring on github and checking out some of my other work:

Youtube Search API and its CLI

Fluent Filepaths

Urban Dictionary

Need support? Send me an email at wzhouwzhou@gmail.com, or connect with me on Discord at https://discord.gg/jj5FzF7 (William Zhou#0001)

Like what you're seeing? Consider helping to fund my education through https://paypal.me/wzhouwzhou