rivets-utilify
v0.2.2
Published
Rivets formatters for using with UtilifyJS
Downloads
10
Maintainers
Readme
RivetsUtilify
Rivets formatters based on RivetsStdlib for using with UtilifyJS
Table of contents
Main
dist/
├── rivets-utilify.js (UMD)
├── rivets-utilify.min.js (UMD, compressed)
├── rivets-utilify.common.js (CommonJS, default)
└── rivets-utilify.esm.js (ES Module)
Getting started
Direct download
Download the script here and include it.
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/rivets/0.9.6/rivets.bundled.min.js"></script>
<script type="text/javascript" src="utilify.min.js"></script>
<script type="text/javascript" src="rivets-utilify.min.js"></script>
Package Managers
RivetsUtilify supports npm under the name rivets-utilify
.
npm install rivets-utilify --save
Module Loaders
RivetsUtilify can also be loaded as an CommonJS or ES6 module (recomended).
// CommomJS
var RivetsUtilify = require('rivets-utilify');
// ES6 module
import RivetsUtilify from 'rivets-utilify';
Usage
With UMD (Universal Module Definition), the package is available on global var RivetsUtility
.
// Initialize UtilifyJS
var utilify = new UtilifyJS();
// Initialize RivetsUtilify
var rivetsUtilify = new RivetsUtilify(utilify)
Formatters
Formatters docs can be found on original RivetsStdlib
License
RivetsUtilify is open-sourced software licensed under the MIT license.
Dependencies
Rivets.js 0.9.6+
UtilifyJS 0.3.5+
Credits
Special thanks to Matthieu Riolo and all contributors of RivetsStdlib