1.2.1 • Published 8 years ago

md5-fingerprint v1.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

#Quick Examples

npm install md5-fingerprint --save
var md5Fingerprint = require('md5-fingerprint');

md5Fingerprint.filesToFolder(['html/**/home.html'], 'dest/', 'html', function(err){
	if(err) throw err;
	console.log('done');
});

##Before

html/home.html
<html>
	<head>
		<script src="myjsfile.js?v=__md5('myjsfile.js')"></script>
	</head>
</html>

##After

dest/home.html
<html>
	<head>
		<script src="myjsfile.js?v=8c16eea7f5"></script>
	</head>
</html>

#Options md5Fingerprint.filesToFolder(paths, dest, noDir, cb); ##paths Files paths to proccess ##dest The output destination ##noDir Do not generate directory. i.e. 'html' 'src' ##cb The callback function after process complete

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago