spongebobify
a nOdE MoDuLe tO EaSiLy sPoNgEbObIfY TeXt
Last updated 2 years ago by bencooper222 .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install spongebobify 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.3.8                                ...           latest (2 years ago)

19 Versions

  • 0.3.8                                ...           2 years ago
  • 0.3.7                                ...           2 years ago
  • 0.3.6                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 7
Last Day 1
Last Week 3
Last Month 26
Dependencies (0)
None
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |