Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
grunt-tar-passthru
Advanced tools
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-tar-passthru --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-tar-passthru');
In your project's Gruntfile, add a section named tar_passthru
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
tar_passthru: {
}
});
Here you can add string properties that you can reference using: <%= tar_passthru.options.xxxxxx %>.
An array of jobs you wish to tar.
grunt.initConfig({
tar_passthru: {
options : {
cwd : (function(){
return process.cwd()
}())
,timestamp : (function(){
//A FORMATTED TIMESTAMP STRING FOR BACKUP NAMING
var d = new Date(),dstr = '';
return ('0' + (d.getMonth()+1)).slice(-2)
+ '.' + ('0' + d.getDate()).slice(-2)
+ '.' + d.getFullYear()
+ '.' + ('0' + d.getHours()).slice(-2)
+ '' + ('0' + d.getMinutes()).slice(-2);
}())
}
,jobs : [
//this example translates to:
//tar -zcvf /path/to/archive.01.01.2001.1234.tar.gz -P /path/to/somedir --directory=/path/to/somedir --exclude=someotherdirname
[
//z:gzip, c:create archive, v:verbose,
//f:next argument is name of archive file
"-zcvf"
//archive path
,"/path/to/archive.<%= tar_passthru.options.timestamp %>.tar.gz"
//allow absolute path
,"-P"
//Files or Directories to tar
,[
'/path/to/somedir'
]
//Sets present working directory, makes sure archive
//top level is same as target[s]
,"--directory=/path/to/somedir"
//Excludes directory from archive
,"--exclude=someotherdirname"
]
]
}
});
FAQs
Pass-through interface for tar commands in Grunt.
The npm package grunt-tar-passthru receives a total of 9 weekly downloads. As such, grunt-tar-passthru popularity was classified as not popular.
We found that grunt-tar-passthru demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.