2.0.0 • Published 6 years ago

serial-concat-files v2.0.0

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

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>
})