{"id":19388957,"url":"https://github.com/james2doyle/grunt-jsfmt","last_synced_at":"2025-04-23T23:31:53.292Z","repository":{"id":16910491,"uuid":"19671621","full_name":"james2doyle/grunt-jsfmt","owner":"james2doyle","description":"a grunt task for the jsfmt tool","archived":false,"fork":false,"pushed_at":"2014-08-09T13:24:46.000Z","size":205,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T22:33:06.211Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/james2doyle.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}},"created_at":"2014-05-11T16:48:52.000Z","updated_at":"2016-08-15T21:14:50.000Z","dependencies_parsed_at":"2022-08-26T16:31:09.091Z","dependency_job_id":null,"html_url":"https://github.com/james2doyle/grunt-jsfmt","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/james2doyle%2Fgrunt-jsfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fgrunt-jsfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fgrunt-jsfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fgrunt-jsfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/grunt-jsfmt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250532166,"owners_count":21446130,"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-10T10:14:13.714Z","updated_at":"2025-04-23T23:31:53.032Z","avatar_url":"https://github.com/james2doyle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-jsfmt\n\n\u003e a task for the [jsfmt](https://github.com/rdio/jsfmt) library\n\n## Getting Started\n\nThis plugin requires Grunt.\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-jsfmt --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-jsfmt');\n```\n\n## The \"jsfmt\" task\n\n### Usage\n\nIn your project's Gruntfile, add a section named `jsfmt` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  jsfmt: {\n    default: {\n      options: {\n        rewrite: ['_.reduce(a, b, c) -\u003e a.reduce(b, c)']\n      },\n      files: [{\n        expand: true,\n        src: ['**/*.js'],\n        cwd: 'src/',\n        dest: 'src/'\n      }]\n    }\n  }\n})\n```\n\n### Options\n\n#### options.rewrite\n\nType: `Array`\nDefault value: `'[]'`\n\nAn array of values that you want to rewrite.\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\nCopyright (c) 2014 james2doyle (James Doyle). Licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fgrunt-jsfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fgrunt-jsfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fgrunt-jsfmt/lists"}