Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 831 Bytes

README_zh.md

File metadata and controls

39 lines (28 loc) · 831 Bytes

中文 | English

handy-tool

快速通用的JavaScript/node.js实用程序函数。

API

安装

npm i handy-tool --save

使用(以 Base64 为例)

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)