@wrote/write

1.0.4 • Public • Published

@wrote/write

npm version

@wrote/write is a package to write a file to the filesystem.

yarn add -E @wrote/write

Table Of Contents

API

The package is available by importing its default function:

import write from '@wrote/write'

async write(
  path: string,
  data?: string|Buffer,
): void

Write data to a file on the filesystem.

import write from '@wrote/write'

const Write = async (path) => {
  await write(path, '> example-data')
  console.log('Written data to %s:', path)
}
Written data to example/temp/example.txt:
> example-data

Copyright

Art Deco © Art Deco for Wrote 2019 Wrote Tech Nation Visa Tech Nation Visa Sucks

Package Sidebar

Install

npm i @wrote/write

Weekly Downloads

62

Version

1.0.4

License

MIT

Unpacked Size

6.37 kB

Total Files

9

Last publish

Collaborators

  • zvr