JSPM

@wrote/write

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 278
  • Score
    100M100P100Q98743F
  • License MIT

Write a file to the filesystem.

Package Exports

  • @wrote/write

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wrote/write) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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