Socket
Socket
Sign inDemoInstall

generate-index-html

Package Overview
Dependencies
16
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

8

index.js

@@ -31,12 +31,12 @@ #!/usr/bin/env node

if (argv.cwd){
opts.cwd = argv.cwd;
opts.cwd = argv.cwd || process.cwd();
}
if (argv.root){
opts.cwd = argv.root;
opts.root = argv.root || process.cwd();
}
glob(pattern, function(err, files){
const body = files.filter((f)=>fs.lstatSync(f).isFile()).map((f)=>`<a href=${f}>${f}</a>`).join('<br/>');
glob(pattern, opts, function(err, files){
const body = files.map((f)=>({relative: path.join(opts.root, f), original: f})).filter((f)=>fs.lstatSync(f.relative).isFile()).map((f)=>`<a href=${f.original}>${f.original}</a>`).join('<br/>');
const filecontent = `<html><body>${body}</body></html>`;

@@ -43,0 +43,0 @@ if (argv.console) {

{
"name": "generate-index-html",
"version": "0.0.1",
"version": "0.0.2",
"bin": {

@@ -5,0 +5,0 @@ "generate-index-html": "index.js"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc