formating
v0.0.3
Published
A simple library for data format.
Downloads
3
Readme
formating
A simple library for data format
Is under development
Install
Formating is available on npm:
npm install formating --save
Usage
With ES6/import
import {format, util} from 'formating'
let toFormat = format(util.trim)
let result = toFormat(' Test Formating ')
// result => 'Test Formating'
With require
var formating = require('formating')
var format = formating.format
var util = formating.util
var toFormat = format(util.trim)
var result = toFormat(' Test Formating ')
// result => 'Test Formating'
With Browser
<script src="./node_modules/formating/dist/format.js"></script>
var format = formating.format
var util = format.util
var toFormat = format(util.trim)
var result = toFormat(' Test Formating ')
// result => 'Test Formating'
OR
var format = window.formating.format
var util = format.util
var toFormat = format(util.trim)
var result = toFormat( 'Test Formating ')
// result => 'Test Formating'
Also available for AMD