{"id":21464070,"url":"https://github.com/mysterycommand/grunt-usereplace","last_synced_at":"2025-03-17T05:23:34.655Z","repository":{"id":9246194,"uuid":"11067692","full_name":"mysterycommand/grunt-usereplace","owner":"mysterycommand","description":"Works like grunt-usemin, but just replaces the contents of any blocks it finds with the string you provide it.","archived":false,"fork":false,"pushed_at":"2016-03-04T03:24:14.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T21:47:55.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"adrianohrl/arena-unifei-hydro-ros-pkg","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mysterycommand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-30T10:11:31.000Z","updated_at":"2018-12-12T08:36:31.000Z","dependencies_parsed_at":"2022-09-18T12:32:51.318Z","dependency_job_id":null,"html_url":"https://github.com/mysterycommand/grunt-usereplace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysterycommand%2Fgrunt-usereplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysterycommand%2Fgrunt-usereplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysterycommand%2Fgrunt-usereplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysterycommand%2Fgrunt-usereplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysterycommand","download_url":"https://codeload.github.com/mysterycommand/grunt-usereplace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976833,"owners_count":20377782,"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":[],"created_at":"2024-11-23T07:29:32.407Z","updated_at":"2025-03-17T05:23:34.617Z","avatar_url":"https://github.com/mysterycommand.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-usereplace\n\n\u003e A dead simple HTML find \u0026 replace plugin. Loosely based on `grunt-usemin`.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\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-usereplace --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-usereplace');\n```\n\n## The \"usereplace\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `usereplace` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  usereplace: {\n    options: {\n      // The dest folder is optional. Omitting it will overwrite targetted files.\n      dest: 'path/to/dest/folder'\n    },\n    // Targets expect a list of HTML filepaths. Each file is read, processed, and written into the dest directory (or overwritten in place).\n    html: [\n        'path/to/target/file1.html',\n        'path/to/target/file2.html',\n        'path/to/target/file3.html'\n    ]\n  },\n})\n```\n\n### Options\n\n#### More info coming soon?\n\n### Usage Examples\n\n#### More info coming soon?\n\n## Contributing\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## Release History\n\n`0.1.4` is probably quite a bit safer. Works with multiple build:replace blocks and correctly ignores `grunt-usemin` blocks. Still though, use at own risk.\n\n`0.1.3` is just a barely functional version, use at your own risk!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysterycommand%2Fgrunt-usereplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysterycommand%2Fgrunt-usereplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysterycommand%2Fgrunt-usereplace/lists"}