mako-write

1.1.1 • Public • Published

mako-write

A plugin that writes files to disk.

npm version npm dependencies npm dev dependencies

Purpose

  • ensures that file.path !== file.initialPath to prevent clobbering
  • writes file.contents to disk at the current file.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)

Readme

Keywords

Package Sidebar

Install

npm i mako-write

Weekly Downloads

3

Version

1.1.1

License

MIT

Last publish

Collaborators

  • dominicbarnes