Socket
Socket
Sign inDemoInstall

build-ignore

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

build-ignore - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

bin/cli.js

2

package.json
{
"name": "build-ignore",
"version": "1.0.6",
"version": "1.0.7",
"description": "A post-checkout hook script that generates a .gitignore based on branch name for when different .gitignores are needed",

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

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

const currentBranch = process.argv[2]
const currentBranch = process.argv[2];
const regEx = /ref: refs\/heads\/([^\n]+)/;
module.exports = fs.readFile(`${path.join(process.cwd(), '.git/HEAD')}`, 'utf8', (err, data) => {
const gitBranch = fs.readFile(`${path.join(process.cwd(), '.git/HEAD')}`, 'utf8', (err, data) => {
//if error in getting

@@ -37,1 +37,3 @@ if (err) throw err;

});
module.exports = gitBranch;
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