$ gnpm install @wrote/write
@wrote/write is a package to write a file to the filesystem.
yarn add -E @wrote/write
The package is available by importing its default function:
import write from '@wrote/write'
async write(path: string,data?: string|Buffer,): voidWrite 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 for Wrote 2019 | 
      
         | 
    
      
         
      
     | 
    Tech Nation Visa Sucks | 
|---|
Copyright 2013 - present © cnpmjs.org | Home |