New Powerful Machines

    grunt-strip-json-comments

    2.2.0 • Public • Published

    grunt-strip-json-comments Build Status

    Strip comments from JSON. Lets you use comments in your JSON files!

    Using the strip-json-comments module.

    This is now possible:

    {
        // rainbows
        "unicorn": /* ❤ */ "cake"
    }

    Install

    $ npm install --save-dev grunt-strip-json-comments
    

    Usage

    require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
     
    grunt.initConfig({
        stripJsonComments: {
            dist: {
                options: {
                    whitespace: true
                },
                files: {
                    'without.json': 'with-comments.json'
                }
            }
        }
    });
     
    grunt.registerTask('default', ['stripJsonComments']);

    Options

    See the strip-json-comments options.

    License

    MIT © Sindre Sorhus

    Install

    npm i grunt-strip-json-comments

    DownloadsWeekly Downloads

    39

    Version

    2.2.0

    License

    MIT

    Last publish

    Collaborators

    • sindresorhus