0.3.8 • Published 6 years ago

spongebobify v0.3.8

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

spongebobify

Build Status npm-version npm-monthly-downloads

Usage

First install it:

# npm
npm install --save spongebobify

# yarn (better)
yarn add spongebobify

Alternatively, use it from the web with unpkg.

Then require and use it:

import spongebobify from 'spongebobify';

console.log(spongebobify('A node module to easily spongebobify text'));
// will print "a nOdE mOdUlE To eAsIlY SpOnGeBoBiFy TeXt"

// you can also specify a param on case alternation
console.log(spongebobify('A node module to easily spongebobify text', true));
// will print same as above

console.log(spongebobify('A node module to easily spongebobify text', false));
// will print "A NoDe mOdUlE To eAsIlY SpOnGeBoBiGy tExT"

Development

# Build UMD and ESM modules
yarn build

# Run Mocha test-suite
yarn test

FAQ

Q: Why does this exist?

A: WhY dOeS tHiS eXiSt?

Q: Why do you need type safe spongebobification?

A: Our 10s of users depend on us to deliver a reliable package that will never cause issues. Type checking allows us to deliver on that promise.

Q: Couldn't you just have a human test the code?

A: Clearly, we hold ourselves to higher standards than you hold yourself.

Q: Couldn't I just write this algorithm myself?

A: What would you rather do - write 5 lines of code or just type yarn add spongebobify and get a package guaranteed to work after installing.

Q: Why is there a rollup config file?

A: Welcome to the future.

Credits

Algorithm and idea inspired by Irfaan Khalid's spongebobify-cmd project. His isn't as good though - there's no unit tests, it's not available on Maven and it's in Java.

License

MIT License.

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago