1.0.7 • Published 4 years ago

pon-writer v1.0.7

Weekly downloads
467
License
Apache-2.0
Repository
github
Last release
4 years ago

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

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago