{"id":17963096,"url":"https://github.com/sparanoid/grunt-html-trim","last_synced_at":"2026-02-27T23:07:02.349Z","repository":{"id":45810959,"uuid":"81651404","full_name":"sparanoid/grunt-html-trim","owner":"sparanoid","description":"Trim HTML files","archived":false,"fork":false,"pushed_at":"2025-01-24T03:55:46.000Z","size":123,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T04:25:27.614Z","etag":null,"topics":["grunt","grunt-plugins"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sparanoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-11T12:27:09.000Z","updated_at":"2018-12-01T06:48:05.000Z","dependencies_parsed_at":"2025-01-24T04:23:15.928Z","dependency_job_id":"237c19b0-6a45-47ac-929b-84d9876e8edf","html_url":"https://github.com/sparanoid/grunt-html-trim","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparanoid%2Fgrunt-html-trim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparanoid%2Fgrunt-html-trim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparanoid%2Fgrunt-html-trim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparanoid%2Fgrunt-html-trim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparanoid","download_url":"https://codeload.github.com/sparanoid/grunt-html-trim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238798501,"owners_count":19532278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grunt","grunt-plugins"],"created_at":"2024-10-29T11:24:06.938Z","updated_at":"2025-10-29T09:31:22.008Z","avatar_url":"https://github.com/sparanoid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-html-trim\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/sparanoid/grunt-html-trim.svg)](https://greenkeeper.io/)\n\n[![NPM version](https://img.shields.io/npm/v/grunt-html-trim.svg?)](https://www.npmjs.com/package/grunt-html-trim)\n[![Build Status](https://travis-ci.org/sparanoid/grunt-html-trim.svg?branch=master)](https://travis-ci.org/sparanoid/grunt-html-trim)\n[![dependencies Status](https://img.shields.io/david/sparanoid/grunt-html-trim.svg)](https://david-dm.org/sparanoid/grunt-html-trim)\n[![devDependencies Status](https://img.shields.io/david/dev/sparanoid/grunt-html-trim.svg)](https://david-dm.org/sparanoid/grunt-html-trim?type=dev)\n\n\u003e Trim HTML files\n\n## Getting Started\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-html-trim --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-html-trim');\n```\n\n## The \"html_trim\" task\n\n### Overview\n\nIn your project's Gruntfile, add a section named `html_trim` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  html_trim: {\n    options: {\n      // Task-specific options go here.\n    }\n  },\n});\n```\n\n### Options\n\nNo options for this plugin.\n\n### Usage Examples\n\n#### Single File\n\nIn this example, `html_trim` will trim single file `app/index.html` and save output to `dist/index.html`.\n\n```js\ngrunt.initConfig({\n  html_trim: {\n    files: {\n      'dist/index.html': 'app/index.html'\n    }\n  },\n});\n```\n\n#### Multiple Files\n\nIn this example, `html_trim` will trim all `*.html` files include subdirectories under `app/` and save output to `dist/` directory.\n\n```js\ngrunt.initConfig({\n  html_trim: {\n    files: [\n      {\n        expand: true,\n        cwd: 'app/',\n        src: \"**/*.html\",\n        dest: \"dist/\"\n      }\n    ]\n  },\n});\n```\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparanoid%2Fgrunt-html-trim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparanoid%2Fgrunt-html-trim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparanoid%2Fgrunt-html-trim/lists"}