https://github.com/soul-wish/grunt-json-cleanup
A Grunt plugin for removing empty strings from JSON files
https://github.com/soul-wish/grunt-json-cleanup
clean cleaner cleanup empty grunt grunt-plugin grunt-plugins grunt-task json jsonfile lines remove values
Last synced: 11 months ago
JSON representation
A Grunt plugin for removing empty strings from JSON files
- Host: GitHub
- URL: https://github.com/soul-wish/grunt-json-cleanup
- Owner: soul-wish
- License: mit
- Created: 2018-01-30T09:31:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T17:44:42.000Z (over 3 years ago)
- Last Synced: 2025-06-16T13:55:16.562Z (12 months ago)
- Topics: clean, cleaner, cleanup, empty, grunt, grunt-plugin, grunt-plugins, grunt-task, json, jsonfile, lines, remove, values
- Language: JavaScript
- Size: 351 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# grunt-json-cleanup
> A plugin for removing empty strings from JSON files
## Getting Started
```shell
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:
```js
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()`.
```js
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](http://soulwish.info)