{"id":22865561,"url":"https://github.com/tecfu/grunt-tar-passthru","last_synced_at":"2025-08-17T14:08:16.486Z","repository":{"id":20110421,"uuid":"23380141","full_name":"tecfu/grunt-tar-passthru","owner":"tecfu","description":"Pass-through interface for linux tar commands in Grunt.","archived":false,"fork":false,"pushed_at":"2016-03-07T15:41:20.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T09:47:17.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.org/package/grunt-tar-passthru","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/tecfu.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":"2014-08-27T07:00:25.000Z","updated_at":"2016-03-07T15:34:20.000Z","dependencies_parsed_at":"2022-07-23T04:46:18.990Z","dependency_job_id":null,"html_url":"https://github.com/tecfu/grunt-tar-passthru","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tecfu/grunt-tar-passthru","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fgrunt-tar-passthru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fgrunt-tar-passthru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fgrunt-tar-passthru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fgrunt-tar-passthru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecfu","download_url":"https://codeload.github.com/tecfu/grunt-tar-passthru/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fgrunt-tar-passthru/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856775,"owners_count":24657700,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-13T11:37:37.336Z","updated_at":"2025-08-17T14:08:16.467Z","avatar_url":"https://github.com/tecfu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-tar-passthru\n\n- Pass-through interface for tar commands in Grunt.\n- Requires tar already installed and accessible from terminal.\n- Syntactically similar to entering a tar command in the terminal. Each\narray value in a job essentially represents a single command line parameter.\n- You can do anything with this that you can do with tar.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\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-tar-passthru --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-tar-passthru');\n```\n\n## The \"tar_passthru\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `tar_passthru` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  tar_passthru: {\n  }\n});\n```\n\n### Options\n\nHere you can add string properties that you can reference using: \u003c%= tar_passthru.options.xxxxxx %\u003e.\n\n\n### Jobs\n\nAn array of jobs you wish to tar.\n\n\n### Usage Example\n\n```js\ngrunt.initConfig({\n  tar_passthru: {\n\n    options : {\n        cwd : (function(){\n            return process.cwd()\n        }())\n\n        ,timestamp : (function(){\n\n            //A FORMATTED TIMESTAMP STRING FOR BACKUP NAMING\n            var d = new Date(),dstr = '';\n            return ('0' + (d.getMonth()+1)).slice(-2)\n            + '.' + ('0' + d.getDate()).slice(-2)\n            + '.' + d.getFullYear()\n            + '.' + ('0' + d.getHours()).slice(-2)\n            + '' + ('0' + d.getMinutes()).slice(-2);\n\n        }())\n    }\n\n    ,jobs : [\n\n//this example translates to: \n//tar -zcvf /path/to/archive.01.01.2001.1234.tar.gz -P /path/to/somedir --directory=/path/to/somedir --exclude=someotherdirname\n        [\n            //z:gzip, c:create archive, v:verbose, \n            //f:next argument is name of archive file \n            \"-zcvf\"\n\n            //archive path\n            ,\"/path/to/archive.\u003c%= tar_passthru.options.timestamp %\u003e.tar.gz\"\n\n            //allow absolute path\n            ,\"-P\"\n\n            //Files or Directories to tar\n            ,[\n                '/path/to/somedir'\n            ]\n\n            //Sets present working directory, makes sure archive \n            //top level is same as target[s]\n            ,\"--directory=/path/to/somedir\"\n\n            //Excludes directory from archive\n            ,\"--exclude=someotherdirname\"\n         \n        ]\n    ]\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecfu%2Fgrunt-tar-passthru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecfu%2Fgrunt-tar-passthru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecfu%2Fgrunt-tar-passthru/lists"}