bbsjs
v0.0.19
Published
> Just a few utils
Readme
BBS Javascript Library
Just a few utils
Install
$ npm i -S bbsjsUsage
- Importing the whole lib :
import B from 'bbsjs';
B.utils.Share.open('twitter', {title:"Look Ma, I'm Sharing on twitter !"});- Importing a sub package :
import {utils as BU} from 'bbsjs';
BU.Math.clamp(100, 10, 50);- importing one specific class :
import MathUtils from 'bbsjs/src/utils/Math';
MathUtils.normalize(5, 0, 10);- include .js file old fashioned way (the module spec used is UMD) :
<script src='bbsjs.min.js'></script>
<script>bbsjs.utils.Share.open('twitter', {title:"Look Ma, I'm Sharing on twitter !"});</script>Documentation
http://big-boss.gitlab.io/BBS_js_library/
