handy-tool
v1.0.10
Published
A set of fast and universal JavaScript/node.js utility functions.
Downloads
13
Readme
handy-tool
A set of fast and universal JavaScript/node.js utility functions.
API
- JSONP for to initiate jsonp requests
- Storage for local storage security encryption
- Base64 for Base64 encryption and decryption
- DataFormat for data operation
Install
npm i handy-tool --save
Usage(Take base64 as an example)
import handyTool from "handy-tool"
let encode = handyTool.base64.encode("123456");
console.log(encode)
let decode = handyTool.base64.decode(encode)
console.log(decode)
Or
import {encode,decode} from "handy-tool"
let encodeString = encode("123456");
console.log(encodeString)
let decodeString = decode(encodeString)
console.log(decodeString)