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

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.1 to 1.0.2

6

index.js
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
exports.gitBranch = (branch) => {
function gitBranch(branch) {
const regEx = /ref: refs\/heads\/([^\n]+)/;

@@ -34,3 +34,1 @@ fs.readFile(`${path.join(process.cwd(), '.git/HEAD')}`, 'utf8', (err, data) => {

};
// gitBranch('ignore');
module.exports = gitBranch();
{
"name": "build-ignore",
"version": "1.0.1",
"version": "1.0.2",
"description": "A post-checkout hook script that generates a .gitignore based on branch name for when different .gitignores are needed",

@@ -10,2 +10,5 @@ "main": "index.js",

},
"bin": {
"build-ignore": "./index.js"
},
"keywords": ["git", "git-branch-ignore", "gitignore", "branch", "branch-ignore", "ignore"],

@@ -12,0 +15,0 @@ "author": "David Conner <david@david-conner.com>",

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