vow-fs

WebJar for vow-fs

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

vow-fs
Last Version

Last Version

0.3.6
Release Date

Release Date

Type

Type

jar
Description

Description

vow-fs
WebJar for vow-fs
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/dfilatov/vow-fs

Download vow-fs

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/vow-fs/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>vow-fs</artifactId>
    <version>0.3.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/vow-fs/
implementation 'org.webjars.npm:vow-fs:0.3.6'
// https://jarcasting.com/artifacts/org.webjars.npm/vow-fs/
implementation ("org.webjars.npm:vow-fs:0.3.6")
'org.webjars.npm:vow-fs:jar:0.3.6'
<dependency org="org.webjars.npm" name="vow-fs" rev="0.3.6">
  <artifact name="vow-fs" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='vow-fs', version='0.3.6')
)
libraryDependencies += "org.webjars.npm" % "vow-fs" % "0.3.6"
[org.webjars.npm/vow-fs "0.3.6"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : uuid jar [2.0.2,3)
org.webjars.npm : vow jar [0.4.7,0.5)
org.webjars.npm : vow-queue jar [0.4.1,0.5)
org.webjars.npm : glob jar [7.0.5,8)

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.3.6
0.3.4