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

Package detail

snack-file

subchen328Apache-2.01.0.0

file manipulation functions for node.js

snack, file, fs, io

readme

Build Status Code Coverage NPM Repo License

snack-file

File manipulation functions for node.js

Installation

npm install snack-file

Example

var file = require('snack-file');

console.log(file.exists('/etc/passwd'));

APIs

  • exists
  • isFile
  • isDirectory
  • isSymbolicLink
  • read
  • readBuffer
  • write
  • writeBuffer
  • mkdirs
  • glob
  • move
  • copy
  • delete
  • stat
  • size
  • lastModified
  • readJSON
  • resolve
  • path

License

Released under the Apache 2 License.