ππ
BBO is a small useful modern JavaScript utility library.
Every frontend developer has his own utils library, and we often write methods that are easily forgotten and highly used. bbo is a super small and useful utils library for JavaScript. It isn't couping with lodash underscore lazy.js.
I sorted out the most frequently used functions in daily development. These functions are almost ubiquitous in your development, and they cannot be found in lodash and underscore.
Most code comes from the stackOverflow site in the high-score answers, so we pay tribute to the original authors.
With easy code and less than 9k gzip, bbo can be used anytime and anywhere with no worries.
See the latest docs/documentation for a full API reference or bbo-docs.
When you use react, vue, angularοΌyou often need to write a lot of utils methods. But lodash and underscore libraries are not omnipotent. So you have to find a lot of tool libraries. By using bbo, you can solve many small problems in the daily development. It is simple and compact!
Install using npm
npm install bbo --save
...
import bbo from 'bbo';
let username = bbo.getCookie('username');
bbo.log('hello world!');
let id = bbo.setTimesout(function(word){
console.log(word);
console.log(this); // log {index: 3 ,times: 8, over: false}
}, 1000/20, 8, 'helloWorld')
node is a dependency, use terminal to install it with
git clone git://github.com/tnfe/bbo.git
...
npm install
npm run lint
npm run build
And run example
npm run start
//visit http://localhost:8080
Thank you all who already contributed to bbo!
ppo , ppo-cli , onavo , 30-seconds , locutus , mnu
Detailed changes for each release are documented in the release notes.
Bbo is released under the MIT License. http://www.opensource.org/licenses/mit-license