mako-write
A plugin that writes files to disk.
Purpose
- ensures that
file.path !== file.initialPath
to prevent clobbering - writes
file.contents
to disk at the currentfile.path
location
API
write(extensions, [options])
The extensions
argument can be passed as either a single String
or an Array
of extensions.
(without the leading dot)
The following options
are available:
force
: bypasses the "initialPath" check (useful when the file only exists in memory)