Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

dirsummary

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dirsummary

Small tool to create a directory summary based on README files

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dirsummary

Show a directory summary based on informations found in markdown files Resulting in a ldjson stream of extracted informations

Installation

npm install -g dirsummary

Usage

Usage: dirsummary [options]

The information in the stream are:

  • filepath: The full file path
  • filename: The filename
  • name: The filename without extension
  • dirname: The directory name containing the markdown file
  • volume: The dirname parent
  • title: The markdown title
  • description: The first line after the title
  • (Other fields): The first block containing Yaml data is merged with the resulting json entry

From a directory containing other directory with README.md inside

dirsummary --glob "*/README.md"

# With csv-write utility (from csv-write-stream npm package)
dirsummary | csv-write

Keywords

summary

FAQs

Package last updated on 09 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts