Package Exports
- write-file-safe
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 (write-file-safe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Write files, and create parent directories if necessary.
Installation
yarn add write-file-safe
npm install write-file-safe
API
import { writeFile, writeFileSync } from "write-file-safe";
writeFileSync(path: string, content?: string) => void;
writeFile(path: string, content?: string) => Promise<void>;
Dev Dependencies
- @bconnorwhite/bob: Bob is a toolkit for typescript projects
- @types/mock-fs: TypeScript definitions for mock-fs
- @types/node: TypeScript definitions for Node.js
- mock-fs: A configurable mock file system. You know, for testing.
- read-file-safe: Read files without try catch
License 
Related Packages
- read-file-safe: Read files without try catch
- remove-file-safe: Remove files without try catch
- read-dir-safe: Read directories recursively or non-recursively
- remove-dir-safe: Remove directories recursively or non-recursively
- write-dir-safe: Create directories and their parents recursively