npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vow-fs

v0.3.6

Published

File I/O by Vow

Downloads

319,826

Readme

vow-fs NPM version Build Status

Vow-based file I/O for Node.js

Requirements

Vow-fs works with Node.js 0.6 and above.

Getting Started

You can install vow-fs using Node Package Manager (npm):

npm install vow-fs

####Usage####

var fs = require('vow-fs');

API

####read(path, [encoding])#### Returns a promise for the file's content at a given path. ####write(path, data, [encoding])#### Writes data to file at a given path. Returns a promise for the completion of the operation. ####append(path, data, [encoding])#### Appendsdata to file's content at a given path. Returns a promise for the completion of the operation. ####remove(path)#### Removes a file at a given path. Returns a promise for the completion of the operation. ####copy(sourcePath, targetPath)#### Copies a file from sourcePath to targetPath. Returns a promise for the completion of the operation. ####move(sourcePath, targetPath)#### Moves a file or directory from sourcePath to targetPath. Returns a promise for the completion of the operation. ####stat(path)#### Returns a promise for the metadata about the given path as a Stats object. ####exists(path)#### Returns a promise for whether the given path exists. ####link(sourcePath, targetPath)#### Creates a hard link from the sourcePath to targetPath. ####symLink(sourcePath, targetPath, [type=file])#### Creates a symbolic link from the sourcePath to targetPath. ####chown(path, uid, gid)#### Changes the owner of a given path. ####chmod(path, mode)#### Changes the mode of a given path to mode. ####absolute(path)#### ####isFile(path)#### Returns a promise for whether the given path is a file. ####isDir(path)#### Returns a promise for whether the given path is a directory. ####isSocket(path)#### Returns a promise for whether the given path is a socket. ####isSymLink(path)#### Returns a promise for whether the given path is a symbolic link. ####makeTmpFile([options])#### Makes a temporary file. Returns a promise with generated path to file. The options:

  • prefix (absent by default)
  • dir (operating system's directory for temp files by default)
  • ext (.tmp by default)

####listDir(path)#### Returns a promise for a list of files and directories in directory at the given path. ####makeDir(path, [mode=0777], [failIfExist=false])#### Makes a directory at a given path and any necessary subdirectories (like mkdir -p). Returns a promise for the completion of the operation. ####removeDir(path)#### Recursively removes a directory at a given path (like remove -rf). Returns a promise for the completion of the operation. ####glob(pattern, [options])#### Matches files using the patterns. See https://github.com/isaacs/node-glob for details.