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

code-aggregator

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-aggregator

Code Aggregator is a command-line tool that scans a specified directory and aggregates the contents of files with specific types into an output file.

  • 1.0.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Code Aggregator

Code Aggregator is a command-line tool that scans a specified directory and aggregates the contents of files with specific types into an output file.

Installation

To install Code Aggregator, run the following command:

npm install -g CodeAggregator

After installation, CodeAggregator will be available to use in any package.

Usage

You can use the Code Aggregator tool with the following command-line options:

  1. -d, --directory: Directory to scan (default: './').
  2. -t, --fileTypes: File types to include (default: ['.js', '.html']).
  3. -o, --output: Output file name (default: 'dirContents.txt').
Example

To scan the current directory for JavaScript and HTML files and output the contents to a file named myOutput.txt, run the following command:

CodeAggregator --directory ./ --fileTypes .js .html --output myOutput.txt
Help

You can access the help menu for more information by running:

CodeAggregator --help
Code Overview

The code utilizes the fs, path, and yargs modules to read the directory and file content, filter by file type, and write the aggregated content to the specified output file.

FAQs

Package last updated on 24 Aug 2023

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

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