circular-append-file

WebJar for circular-append-file

Лицензия

Лицензия

MIT
Группа

Группа

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

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

circular-append-file
Последняя версия

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

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

circular-append-file
WebJar for circular-append-file
Ссылка на сайт

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

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

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

https://github.com/pfrazee/circular-append-file

Скачать circular-append-file

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

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

Зависимости

compile (1)

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

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

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

circular-append-file

A simple appendable-file interface which enforces a size cap by overwriting itself. A good way to maintain a log where you want to drop history after you hit a size limit.

Currently clears the file on open, then will write each append to the end until the maxSize is hit. Will then circle back to the top and continue writing.

Currently only supports strings.

const CircularAppendFile = require('circular-append-file')

let log = CircularAppendFile('./app.log', {
  maxSize: 1024 // 1kb (default is 32mb)
})
log.append('Hello\n')
log.append('World!\n')
log.createReadStream().pipe(process.stdout)
log.close()

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

Версия
1.0.1