passerror

WebJar for passerror

Лицензия

Лицензия

BSD 3-Clause
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

passerror
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

passerror
WebJar for passerror
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/papandreou/passerror

Скачать passerror

Как подключить последнюю версию

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

passError

Handle success and failure with two different callbacks. Lets you get rid of most if (err) return cb(err); constructs.

Example

Send errors reported by fs.readFile straight to cb:

var passError = require('passerror'),
    fs = require('fs');

function getLines(fileName, cb) {
    fs.readFile(fileName, 'utf-8', passError(cb, function (contents) {
        cb(null, contents.split(/\r?\n|\n?\r/));
    }));
}

License

Licensed under a standard 3-clause BSD license -- see the LICENSE-file for details.

Версии библиотеки

Версия
1.1.1