New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

grunt-zipstream

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-zipstream

Create ZIP files from grunt with zipstream.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

grunt-zipstream

Create ZIP files with zipstream.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-zipstream

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-zipstream');

Documentation

A simple multitask called zip is defined. Configure it like so:

grunt.initConfig({
    zip: {
        foobar: {
            src: [
                'static/images/**/*''
                'static/index.html',
                'README.md'
            ],
            dest: 'package.zip',

            /* optional */
            base: 'some/path',
            subdir: 'some/path',
            zlib: {
                level: 1
            }
        }
    },
    /* optional */
    zlib: { /* ... */ }
});

The base option can be set to a base path that will be stripped off the filenames in the zip file. The subdir option allows you to add a custom prefix to filenames in the zip file, (usually a single directory name.)

Per task, or globally, you can set zlib to options for the Node.js zlib module. See the zlib documentation for specifics, but the most useful will be the level option controlling compression level.

License

Copyright (c) 2013 Stéphan Kochen
Licensed under the MIT license.

Keywords

gruntplugin

FAQs

Package last updated on 21 Feb 2013

Did you know?

Socket

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.

Install

Related posts