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.3 to 1.0.4

24

index.js

@@ -6,18 +6,16 @@ var B = require('br4nch');

module.exports = function() {
return new Promise(function () {
B()
.then((value) => {resolve(value)})
.catch((err) => {
B()
.then((value) => {console.log(value)})
.catch((err) => {
console.log('Not a git repository (or any of the parent directories): .git');
console.log('Not a git repository (or any of the parent directories): .git');
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`)
.then((value) => {console.log(value);})
.catch((err) => {console.log(reject(err));});
});
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`)
.then((value) => {console.log(value);})
.catch((err) => {console.log(err);});
});
})
});
}
{
"name": "1n1t",
"version": "1.0.3",
"version": "1.0.4",
"description": "Git init or get current branch easily",

@@ -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