Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
gulp-file-to-json
Advanced tools
Gulp plugin to convert a file and its MD5 hash value into a JSON representation.
Gulp plugin to convert a file and its MD5 hash value into a JSON representation.
npm install --save-dev gulp-file-to-json
Transform example.css
:
body {color: olive;}
Into example.json
:
{
"md5": "d8fba0d7a4fcb4a293d22ff3361d5a70",
"value": "body {color: olive;}"
}
Using gulpfile.js
:
var gulp = require('gulp');
var file2json = require('gulp-file-to-json');
gulp.task('json-file', function () {
return gulp.src('example/example.css')
.pipe(file2json())
.pipe(gulp.dest('example'));
});
Inspired by font-store (Base64 encodes web fonts to cache in LocalStorage for high performance).
MIT © 2016 Vast.com, Inc.
FAQs
Gulp plugin to convert a file and its MD5 hash value into a JSON representation.
The npm package gulp-file-to-json receives a total of 2 weekly downloads. As such, gulp-file-to-json popularity was classified as not popular.
We found that gulp-file-to-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.