Skip to content

greenpioneersolutions/serial-concat-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serial-concat-files

concat files in order

npm downloads Dependency Status devDependency Status npm-issues js-standard-style Build Status js-standard-style

Install

# NPM
npm i -s serial-concat-files
# YARN
yarn add serial-concat-files

Usage

var concat = require('serial-concat-files')()
concat(['./test/a', './test/b', './test/b'], './test/files/allc')
// OR
var concat = require('serial-concat-files')({ 
  post: '<POST>', // 
  last:'<LAST>',
  first:'<FIRST>',
  pre:'<PRE>'
})
concat(['./test/a', './test/b', './test/b'], './test/files/allc', function (error) {
  // <FIRST>this is a<POST><PRE>this is b<POST><PRE>this is b<LAST>
})