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

gt-starter-npmrc

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gt-starter-npmrc - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

14

bin.js

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

const {ArgumentParser} = pkg;
import {existsSync, readFileSync, writeFileSync} from 'fs';
import {existsSync, readFileSync, writeFileSync, appendFileSync} from 'fs';

@@ -33,3 +33,13 @@ const parser = new ArgumentParser({

const npmFilePath = args.global ? `${HOME_DIR}/.npmrc` : `./npmrc`;
const npmFilePath = args.global ? `${HOME_DIR}/.npmrc` : `./.npmrc`;
if(!args.global) {
if(existsSync("./.gitignore")) {
if(readFileSync('./.gitignore').indexOf(".npmrc") === -1) {
appendFileSync('./.gitignore', '\n.npmrc');
}
}
else {
writeFileSync('./.gitignore', '.npmrc\n');
}
}

@@ -36,0 +46,0 @@ if(existsSync(npmFilePath)){

2

package.json
{
"name": "gt-starter-npmrc",
"version": "1.0.5",
"version": "1.0.6",
"description": "GreenTeam starter script for .npmrc",

@@ -5,0 +5,0 @@ "bin": {

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