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

cr34t3

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cr34t3 - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32

10

index.js

@@ -24,6 +24,12 @@ var B = require('br4nch');

var questions = [
{
type: 'confirm',
name: 'isPrivate',
message: 'Private?',
default: false
},
{
type: 'input',
name: 'repo',
message: 'What\'s your git repository name?'
message: 'Name?'
}

@@ -34,3 +40,3 @@ ];

console.log(colors.green('?'), colors.bold('Write down your github password:'), emoji.emojify(':point_down:'), colors.italic.underline.cyan(' ( It will be hidden )'));
spawn( "curl", [ "-u", username.trim(), 'https://api.github.com/user/repos', "-d", `{"name":"${answers.repo.trim()}"}`], function( error, stdout ) {
spawn( "curl", [ "-u", username.trim(), 'https://api.github.com/user/repos', "-d", `{"name":"${answers.repo.trim()}", "private":${answers.isPrivate}}, "description": "${answers.repo.trim()} created automatically."`], function( error, stdout ) {
if (JSON.parse(stdout).clone_url === undefined) {

@@ -37,0 +43,0 @@ reject(colors.red('Please check your github credentials.'));

2

package.json
{
"name": "cr34t3",
"version": "1.0.31",
"version": "1.0.32",
"description": "Create github repository in programmatically.",

@@ -5,0 +5,0 @@ "main": "index.js",

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