Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grizzly

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grizzly - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

.eslintrc

67

bin/grizzly.js

@@ -5,26 +5,25 @@ #!/usr/bin/env node

var release = require('..'),
check = require('checkup'),
exec = require('execon'),
argv = process.argv,
args = require('minimist')(argv.slice(2), {
string: ['repo', 'user', 'tag', 'name', 'body', 'token'],
boolean: ['prerelease'],
alias: {
v: 'version',
h: 'help',
r: 'repo',
u: 'user',
t: 'tag',
n: 'name',
b: 'body',
p: 'prerelease',
tn: 'token'
}
}),
argsEmpty = Object.keys(args).length === 1;
var release = require('..');
var check = require('checkup');
var exec = require('execon');
var argv = process.argv;
var args = require('minimist')(argv.slice(2), {
string: ['repo', 'user', 'tag', 'target_commitish', 'name', 'body', 'token'],
boolean: ['prerelease'],
alias: {
v: 'version',
h: 'help',
r: 'repo',
u: 'user',
t: 'tag',
tc: 'target_commitish',
n: 'name',
b: 'body',
p: 'prerelease',
tn: 'token'
}
});
var argsEmpty = Object.keys(args).length === 1;
if (args.version)

@@ -44,3 +43,4 @@ version();

args.name,
args.body], [
args.body
], [
'repo',

@@ -56,8 +56,9 @@ 'user',

release(args.token, {
repo: args.repo,
user: args.user,
tag: args.tag,
name: args.name,
body: args.body,
prerelease: args.prerelease
repo: args.repo,
user: args.user,
tag: args.tag,
target_commitish: args.target_commitish,
name: args.name,
body: args.body,
prerelease: args.prerelease
}, log);

@@ -82,5 +83,5 @@

function help() {
var bin = require('../help'),
usage = 'Usage: ' + info().name + ' [options]';
var bin = require('../help');
var usage = 'Usage: ' + info().name + ' [options]';
console.log(usage);

@@ -87,0 +88,0 @@ console.log('Options:');

{
"-h, --help " : "display this help and exit",
"-v, --version " : "output version information and exit",
"-r, --repo " : "name of repository",
"-u, --user " : "user of repository",
"-t, --tag " : "tag of repository (shoul exist!)",
"-n, --name " : "name of release",
"-b, --body " : "body of release",
"-p, --prerelease" : "set prerelease",
"--no-prerelease " : "unset prerelease (default)",
"-tn, --token " : "github token <https://github.com/settings/tokens/new>"
"-h, --help ": "display this help and exit",
"-v, --version ": "output version information and exit",
"-r, --repo ": "name of repository",
"-u, --user ": "user of repository",
"-t, --tag ": "tag of repository (shoul exist!)",
"-n, --name ": "name of release",
"-b, --body ": "body of release",
"-p, --prerelease ": "set prerelease",
"--no-prerelease ": "unset prerelease (default)",
"-tn, --token ": "github token <https://github.com/settings/tokens/new>",
"-tc, --target_commitish ": "commitish value that determines where the Git tag is created from"
}
'use strict';
var path = require('path'),
exec = require('execon'),
GitHubApi = require('github'),
readjson = require('readjson'),
log = require('debug')('grizzly'),
HOME = require('os-homedir')(),
ERROR_TOKEN = 'File ~/.grizzly.json with token not found!',
github = new GitHubApi({
version: '3.0.0'
});
var path = require('path');
var exec = require('execon');
var GitHubApi = require('github');
var readjson = require('readjson');
var log = require('debug')('grizzly');
var HOME = require('os-homedir')();
var ERROR_TOKEN = 'File ~/.grizzly.json with token not found!';
var github = new GitHubApi({
version: '3.0.0'
});
module.exports = function(token, options, callback) {

@@ -48,2 +48,3 @@ exec.if(token, function() {

tag_name : options.tag,
target_commitish : options.target_commitish,
name : options.name,

@@ -50,0 +51,0 @@ body : options.body,

{
"name": "grizzly",
"version": "2.0.4",
"version": "2.1.0",
"description": "create release on github",

@@ -10,2 +10,5 @@ "main": "lib/grizzly.js",

"scripts": {
"lint": "redrun lint:*",
"lint:lib": "eslint lib",
"lint:bin": "eslint --rule 'no-console:0' bin",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -27,10 +30,14 @@ },

"dependencies": {
"checkup": "~1.3.0",
"checkup": "^1.3.0",
"debug": "^2.2.0",
"execon": "~1.2.0",
"execon": "^1.2.0",
"github": "^6.0.1",
"minimist": "^1.2.0",
"os-homedir": "~1.0.0",
"readjson": "~1.1.0"
"os-homedir": "^1.0.0",
"readjson": "^1.1.0"
},
"devDependencies": {
"eslint": "^3.10.2",
"redrun": "^5.9.3"
}
}
# Grizzly [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]
Create release on github with help of node. To upload asset use [putasset](https://github.com/coderaiser/node-putasset "Putasset").
Create release on github with help of node.

@@ -15,15 +15,15 @@ ## Install

```
$ grizzly
Usage: grizzly [options]
Options:
-h, --help display this help and exit
-v, --version output version information and exit
-r, --repo name of repository
-u, --user user of repository
-t, --tag tag of repository (shoul exist!)
-n, --name name of release
-b, --body body of release
-p, --prerelease set prerelease
--no-prerelease unset prerelease (default)
-tn, --token github token <https://github.com/settings/tokens/new>
-h, --help display this help and exit
-v, --version output version information and exit
-r, --repo name of repository
-u, --user user of repository
-t, --tag tag of repository (shoul exist!)
-n, --name name of release
-b, --body body of release
-p, --prerelease set prerelease
--no-prerelease unset prerelease (default)
-tn, --token github token <https://github.com/settings/tokens/new>
-tc, --target_commitish commitish value that determines where the Git tag is created from

@@ -48,4 +48,4 @@ $ grizzly -tn "token from url" \

```js
var grizzly = require('grizzly'),
token = 'token from https://github.com/settings/applications';
const grizzly = require('grizzly');
const token = 'token from https://github.com/settings/applications';

@@ -65,2 +65,7 @@ grizzly(token, {

## Related
- [putasset](https://github.com/coderaiser/node-putasset "Putasset") Upload asset to release on github.
## License

@@ -67,0 +72,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc