read-cache

WebJar for read-cache

Лицензия

Лицензия

MIT
Группа

Группа

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

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

read-cache
Последняя версия

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

read-cache
WebJar for read-cache
Ссылка на сайт

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

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

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

https://github.com/TrySound/read-cache

Скачать read-cache

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : pify jar [2.3.0,3)

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

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

read-cache Build Status

Reads and caches the entire contents of a file until it is modified.

Install

$ npm i read-cache

Usage

// foo.js
var readCache = require('read-cache');

readCache('foo.js').then(function (contents) {
	console.log(contents);
});

API

readCache(path[, encoding])

Returns a promise that resolves with the file's contents.

readCache.sync(path[, encoding])

Returns the content of the file.

readCache.get(path[, encoding])

Returns the content of cached file or null.

readCache.clear()

Clears the contents of the cache.

License

MIT © Bogdan Chadkin

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

Версия
1.0.0