then-fs

WebJar for then-fs

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

then-fs
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

then-fs
WebJar for then-fs
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/then/fs

Download then-fs

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : promise jar [3.2,8)

Project Modules

There are no modules declared in this project.

then-fs

Promised version of the node.js fs module. All non-callback-taking functions of fs are simply inherited.

Build Status Dependency Status NPM version

Installation

$ npm install then-fs

API

The API for then-fs is exactly that of the built in fs module except that any function which normally takes a callback returns a promise instead.

Example:

function readJSON(path) {
  return fs.readFile(path, 'utf8').then(JSON.parse)
}
readJSON(__dirname + '/package.json')
  .done(function (obj) {
    console.dir(oj)
  })

License

MIT

org.webjars.npm

then (Promises/A+ implementations)

Versions

Version
2.0.0