junk

WebJar for junk

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/sindresorhus/junk

Скачать junk

Имя Файла Размер
junk-2.1.0.pom
junk-2.1.0.jar 3 KB
junk-2.1.0-sources.jar 22 bytes
junk-2.1.0-javadoc.jar 22 bytes
Обзор

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

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

Зависимости

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

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

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

junk Build Status

Filter out system junk files like .DS_Store and Thumbs.db

Install

$ npm install junk

Usage

const {promises: fs} = require('fs');
const junk = require('junk');

(async () => {
	const files = await fs.readdir('some/path');

	console.log(files);
	//=> ['.DS_Store', 'test.jpg']

	console.log(files.filter(junk.not));
	//=> ['test.jpg']
})();

API

junk.is(filename)

Returns true if filename matches a junk file.

junk.not(filename)

Returns true if filename doesn't match a junk file.

junk.regex

Regex used for matching junk files.

License

MIT © Sindre Sorhus

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

Версия
2.1.0
1.0.0