Socket
Socket
Sign inDemoInstall

grunt-jsonmin2

Package Overview
Dependencies
103
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-jsonmin2

Minify your JSON files to save some bandwidth.


Version published
Weekly downloads
1
Maintainers
1
Install size
1.69 MB
Created
Weekly downloads
 

Readme

Source

grunt-jsonmin2

Minify your JSON files to save some bytes.

Getting Started

This plugin requires Grunt >=0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-jsonmin2 --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-jsonmin2');

The jsonmin2 task

Run this task with the grunt jsonmin2 command.

Options

This task defined the following options:

report

Type: string Choices: 'min', 'gzip' Default: 'min'

Report minification result or both minification and gzip results. This is useful to see exactly how well the JSON files are minifying but using 'gzip' will make the task take 5-10x longer to complete. Example output.

Usage

jsonmin2: {
  target: {
    files: {
      expand: true,
      cwd: 'release/data',
      src: '*.json',
      dest: 'release/data'
    }
  }
}

License

Copyright (c) 2015 hosting.de GmbH. Licensed under the MIT license.

Keywords

FAQs

Last updated on 02 Oct 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc