Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Be more liberal with parameters #3

Open
beatgammit opened this Issue · 0 comments

1 participant

@beatgammit
Owner

Some or all of the following invocations should work (some don't seem very useful though):

Arguments are just a bunch of compression algorithms (like the next one).

squish('gzip', 'lzma')

Arguments are explicitly an array of strings representing compression algorithms.

squish(['gzip', 'lzma'])

Single compression algorithm.

squish('gzip', GZip, [args...])

Single object representing a compression algorithm.

squish({
    type: 'gzip',
    constructor: GZip,
    args: someArguments
})

Single object with a constructor-less compression algorithm (same as squish('gzip'))

squish({
    type: 'gzip'
})

Array of mixed objects

squish([
    {
        type: 'gzip'
    },
    {
        type: 'lzma',
        constructor: LZMA,
        args: someArguments
    }
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.