Socket
Socket
Sign inDemoInstall

grunt-json-cleanup

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-json-cleanup

A plugin for removing empty strings from JSON files


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Install size
5.43 kB
Created
Weekly downloads
 

Readme

Source

grunt-json-cleanup

A plugin for removing empty strings from JSON files

Getting Started

npm install grunt-json-cleanup --save-dev

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

grunt.loadNpmTasks('grunt-json-cleanup');

The "json_cleanup" task

Overview

In your project's Gruntfile, add a section named json_cleanup to the data object passed into grunt.initConfig().

grunt.initConfig({
  json_cleanup: {
    default: {
      files: {
        // Target-specific file lists and/or options go here.
        'dest/dir/': ['some/src/*.json', 'some/other/src/test.json']
      }
    }
  }
});

License

MIT © Sergey Lysenko

Keywords

FAQs

Last updated on 06 Jun 2019

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