This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
flow-copy-source with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
This is a simple script which finds all .js, .jsx, and .mjs files in one or more source directories, and copies them into a destination directory with the .flow suffix appended to the filename.
Usage: bin/flow-copy-source.js [-v|--verbose] [-w|--watch] [-i PATTERN]... SRC... DEST Options: -v, --verbose Show changes [boolean] -w, --watch Re-copy files on change [boolean] -i, --ignore ignore pattern (glob expression)
--ignore patterns may be given by using the
This module also exports the
flowCopySource(sources, dest, options) function.
sources must be an array of strings,
dest must be a string, and
may optionally be an object with optional
properties. The function returns a promise for an array of
objects listing the operations done.