Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@schlandower/file-get-contents

Schlandower6GPL-3.01.0.2

PHP style wrapper to read the entire file into a string for nodejs. Encoding is automatically detected.

file, contents, string, php, wrapper

readme

file-get-contents

PHP style file reader, reads entire file into a string. This module automatically detects file encoding.

Example usage: var fileGetContents = require('@schlandower/file-get-contents'); var fc = fileGetContents('path/to/your/file');

changelog

24/10/2020 first published @schlandower/first