consolidator
v1.0.2
Published
Consolidate sources to a destination.
Downloads
59
Maintainers
Readme
consolidator
Consolidate sources to a destination.
Usage
Install with yarn
yarn add consolidator
import {
consolidate,
consolidateGlobToFile,
consolidateFilesToFile,
consolidateFileToFile
} from 'consolidator';
API
consolidate(sources, destination)
sources
{String}
glob patterndestination
{String}
file path
consolidate('sources/*', 'destination/consolidated');
consolidate(sources, destination)
sources
{Array}
file pathsdestination
{String}
file path
consolidate(['sources/source', 'other-sources/source'], 'destination/consolidated');
consolidateGlobToFile(sources, destination)
sources
{String}
glob patterndestination
{String}
file path
consolidateGlobToFile('sources/*', 'destination/consolidated');
consolidateFilesToFile(sources, destination)
sources
{Array}
file pathsdestination
{String}
file path
consolidateFilesToFile(['sources/source', 'other-sources/source'], 'destination/consolidated');
consolidateFileToFile(source, destination)
source
{String}
file pathdestination
{String}
file path
consolidateFileToFile('sources/source', 'destination/consolidated');