1.2.0 • Published 8 years ago

antiaris-filestamp v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

antiaris-filestamp

NPM version Downloads Build Status Dependency status Dev Dependency status

文件时间戳

import {filestamp, contentstamp} from 'antiaris-filestamp';

filestamp('./img/logo.png', (err, result) => {
    result//{filename: logo_e65c0a.png}
});

filestamp.sync('./img/logo.png');

contentstamp('var a=1;', 'log0.png', (err, result) => {
    result//{filename: logo_e65c0a.png}
});

contentstamp.sync('var a=1;', 'log0.png');