Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-file-to-json

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-file-to-json

Gulp plugin to convert a file and its MD5 hash value into a JSON representation.

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
2
Weekly downloads
 
Created
Source

gulp-file-to-json

Gulp plugin to convert a file and its MD5 hash value into a JSON representation.

NPM version Dependency Status devDependency Status

Install

npm install --save-dev gulp-file-to-json

Usage

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'));
});

Credits

Inspired by font-store (Base64 encodes web fonts to cache in LocalStorage for high performance).

License

MIT © 2016 Vast.com, Inc.

Keywords

FAQs

Package last updated on 27 Oct 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc