Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@wrote/write

wrote1.2kMIT1.0.4

Write a file to the filesystem.

write, wrote, filesystem, fs, stream, data, file, content

readme

@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

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

changelog

10 April 2019

1.0.4

  • [deps] Update erotic and unfix dependencies.

2 April 2019

1.0.3

  • [deps] Update erotic.

15 January 2019

1.0.2

  • [dep] Update erotic.

14 January 2019

1.0.1

  • [package] Add the "module" field.
  • [package] Remove source maps.

28 September 2018

1.0.0