miaow-util

1.1.0 • Public • Published

miaow-util

Miaow的工具集合

使用说明

var mutil = require('miaow-util');
 
mutil.log('发生了一些事情', '耗费了:', mutil.colors.red('30毫秒'));
 
mutil.hash(new Buffer('你好'));
 
mutil.getDataURI('~/foo.png');
 

colors

chalk 的实例引用

getDataURI(filePath)

获取文件的 data-uri

hash(data)

获取数据的 md5

console

包含了logwarnerror三个打印日志的方法

duration(time)

返回毫秒单位的时间差语义字符串

Dependents (8)

Package Sidebar

Install

npm i miaow-util

Weekly Downloads

5

Version

1.1.0

License

MIT

Last publish

Collaborators

  • anhulife