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

1n1t

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

1n1t - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

npm-debug.log.3401171026

40

index.js
var B = require('br4nch');
var E = require('3x3c');
var async = require('async');
var inquirer = require('inquirer');
var updateNotifier = require('update-notifier');
var pkg = require('./package.json');
updateNotifier({pkg}).notify();
var cmdify = require('cmdify');
var loader = [
'/ Installing.',
'| Installing..',
'\\ Installing...',
'- Installing..'
];
var i = 4;
var ui = new inquirer.ui.BottomBar({bottomBar: loader[i % 4]});
setInterval(function () {
ui.updateBottomBar(loader[i++ % 4]);
}, 300);
module.exports = function() {

@@ -14,13 +29,18 @@ return new Promise(function (resolve, reject) {

console.log('Not a git repository (or any of the parent directories): .git');
var questions = [
{
type: 'input',
name: 'url',
message: 'What\'s your git repository url?'
}
];
var prompt = require('prompt');
prompt.start();
prompt.get([{name:'url', required: true, description: "Git remote url: Ex. https://github.com/cagataycali/br4anch.git"}], function (err, result) {
E(`git init && git remote add origin ${result.url} && git remote show origin && git symbolic-ref HEAD && echo "# Hi" >> README.md && git add . && git commit -m "Hi" && git push -u origin master`)
.then((value) => {
B()
.then((out) => {resolve(out)})
})
.catch((err) => {reject(err)});
inquirer.prompt(questions).then(function (answers) {
E(`git init && git remote add origin ${answers.url} && git remote show origin && git symbolic-ref HEAD && echo "# Hi" >> README.md && git add . && git commit -m "Hi" && git push -u origin master`)
.then((value) => {
B()
.then((out) => {ui.updateBottomBar('Init done!\n');resolve(out)})
.catch((err) => {ui.updateBottomBar('Init error!\n', err);reject(err)})
})
.catch((err) => {ui.updateBottomBar('Init error!\n', err);reject(err)});
});

@@ -27,0 +47,0 @@ });

{
"name": "1n1t",
"version": "1.0.12",
"description": "Git init or get current branch easily",
"version": "1.0.13",
"description": "Create github repository in programmatically.",
"main": "index.js",

@@ -28,2 +28,4 @@ "scripts": {

"br4nch": "^1.0.3",
"cmdify": "0.0.4",
"inquirer": "^1.1.2",
"prompt": "^1.0.0",

@@ -30,0 +32,0 @@ "update-notifier": "^1.0.2"

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