Replace image sources with base64 encoded data strings.
MIT License
Replace image sources with base64 encoded data strings.
Install the module with: npm install img64
var img64 = require('img64');
img64.encodeImgs(string, function(err, string) {
// this string has all img src values base64 encoded.
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Copyright (c) 2012 Elliott Foster Licensed under the MIT license.