Skip to content

Simple node package to combine multiple files into one.

Notifications You must be signed in to change notification settings

DominicLees/file-concat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-file-concat

Small node package to combine multiple files into one.

Import into your project

const fc = require('simple-file-concat');

Documentation

fc(inputDirectory, outputFileName, config);
  • inputDirectory - required - the path to the directory contatining the files to be concatenated
  • outputFileName - required - the name of the file where the output will be stored, must include extension
  • config - optional
    • .ext - only accept files with this extention, by default all files will be concatenated
    • .outputDir - the directory to put the output file in, by default puts the output file in the input directory

Example

fc("./testFiles", "output.txt", {ext: "txt", outputDir: "./"});

About

Simple node package to combine multiple files into one.

Resources

Stars

Watchers

Forks