$ cnpm install read-file-safe
Read files without try catch.
undefined on error rather than throwing.yarn add read-file-safe
npm install read-file-safe
import { readFile, readFileSync } from "read-file-safe";
readFile(path: string) => Promise<string | undefined>;
readFileSync(path: string) => string | undefined;
Copyright 2013 - present © cnpmjs.org | Home |