Natural Preference for Minification
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    putassetpublic

    Putasset License NPM version Dependency Status Build Status

    Upload asset to release on github.

    Install

    npm i putasset -g
    

    How to use?

    Global

    $ putasset
    Usage: putasset [options]
    Options:
    -h, --help      : display this help and exit,
    -v, --version   : output version information and exit,
    -r, --repo      : name of repository,
    -o, --owner     : owner of repository,
    -t, --tag       : tag of repository (shoul exist!),
    -f, --filename  : path to asset
    -tn, --token    : github token <https://github.com/settings/tokens/new>
    -l, --loud      : output filename, owner, repo and tag before upload
    
    $ putasset -tn "token from url" \
    -r putasset -o coderaiser -t v1.0.0 \
    -f "release.zip"
    

    To set token environment variable PUTASSET_TOKEN could be used.

    Local

    npm i putasset --save
    

    Data will be read before execution in next order (left is more important):

    command line -> ~/.putasset.json

    Example

    const putasset = require('putasset'),
    const token = 'token from https://github.com/settings/applications';
     
    putasset(token, {
        owner: 'coderaiser',
        repo: 'putasset',
        tag: 'v1.0.0',
        filename: 'realease.zip'
    }, (error) => {
        if (error)
            console.error(error.message);
    });

    Related

    • grizzly - Create release on github with help of node.

    License

    MIT

    install

    npm i putasset

    Downloadsweekly downloads

    92

    version

    3.1.9

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar