pon-writer

1.0.7 • Public • Published

Title Banner

Build Status npm Version JS Standard

File writer for pon

Installation

$ npm install pon-writer --save

Usage

'use strict'
 
const ponWriter = require('pon-writer')
 
async function tryExample () {
  let writer = ponWriter({})
 
  let { skipped } = await writer.write('foo/bar.txt', 'This is the contents of bar!', {
    mkdirp: true,
    skipIfIdentical: true
  })
  if (!skipped) {
    console.log('New file generated!')
  }
}
 
tryExample().catch((err) => console.error(err))
 

API Guide

License

This software is released under the Apache-2.0 License.

Links

Readme

Keywords

Package Sidebar

Install

npm i pon-writer

Weekly Downloads

9

Version

1.0.7

License

Apache-2.0

Unpacked Size

173 kB

Total Files

49

Last publish

Collaborators

  • okunishinishi
  • realglobe