{"id":21905405,"url":"https://github.com/hex7c0/grunt-endline","last_synced_at":"2025-04-15T23:46:58.595Z","repository":{"id":20244160,"uuid":"23516583","full_name":"hex7c0/grunt-endline","owner":"hex7c0","description":"add newline at end of file for Nodejs","archived":false,"fork":false,"pushed_at":"2023-04-15T22:08:33.000Z","size":155,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-13T19:19:45.370Z","etag":null,"topics":["endline","grunt-plugins","nodejs"],"latest_commit_sha":null,"homepage":"https://github.com/hex7c0/grunt-endline","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hex7c0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-08-31T15:30:50.000Z","updated_at":"2024-06-19T00:08:26.039Z","dependencies_parsed_at":"2024-06-19T00:08:13.923Z","dependency_job_id":null,"html_url":"https://github.com/hex7c0/grunt-endline","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fgrunt-endline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fgrunt-endline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fgrunt-endline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fgrunt-endline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hex7c0","download_url":"https://codeload.github.com/hex7c0/grunt-endline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173060,"owners_count":21224481,"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":["endline","grunt-plugins","nodejs"],"created_at":"2024-11-28T16:33:15.533Z","updated_at":"2025-04-15T23:46:58.566Z","avatar_url":"https://github.com/hex7c0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [grunt-endline](https://github.com/hex7c0/grunt-endline)\n\n[![NPM version](https://img.shields.io/npm/v/grunt-endline.svg)](https://www.npmjs.com/package/grunt-endline)\n[![Linux Status](https://img.shields.io/travis/hex7c0/grunt-endline.svg?label=linux-osx)](https://travis-ci.org/hex7c0/grunt-endline)\n[![Dependency Status](https://img.shields.io/david/hex7c0/grunt-endline.svg)](https://david-dm.org/hex7c0/grunt-endline)\n\n\u003e Add newline at end of file if missing\n\n## Getting Started\nThis plugin requires Grunt `^1.0.0`\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-endline --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-endline');\n```\n\n## The \"endline\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `endline` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  endline: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    }\n  }\n});\n```\n\n### Options\n\n#### options.footer\nType: `String | Number`\nDefault value: `\\n`\n\nWrite newline at the end of file.\nIf is set a Number, replace `footer` X times.\n\n#### options.src\nType: `String | Array`\n\nSource path\n\n#### options.dest\nType: `String | Array`\nDefault value: `false`\n\nDestination path.\n\n#### options.except\nType: `String | Array`\nDefault value: `false`\n\nExcept path from parsing.\nCan hide \"node_modules\" from here.\n\n#### options.replaced\nType: `Boolean`\nDefault value: `false`\n\nShow file replaced.\n\n### Usage Examples\n\n#### Default Options\nIn this example, the default options are used.\n\n```js\ngrunt.initConfig({\n    endline: {\n        default_options: {\n            files: [ {\n                src: 'test/target/with',\n                dest: 'tmp/object'\n            }, {\n                src: 'test/target/without',\n                dest: 'tmp/object'\n            } ]\n        }\n    },\n});\n\n```\n\n#### Custom Options\nIn this example, custom options are used to do save 5 newlines.\n\n```js\ngrunt.initConfig({\n    custom_options: {\n        options: {\n            footer: 5\n        },\n        files: {\n            'tmp/multiple': [ 'test/target/*' ]\n        }\n    }\n});\n```\n\n### [License GPLv3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fgrunt-endline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex7c0%2Fgrunt-endline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fgrunt-endline/lists"}