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
@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 for Wrote 2019 |
|
![]() |
Tech Nation Visa Sucks |
---|