attr-accept

WebJar for attr-accept

Лицензия

Лицензия

MIT
Группа

Группа

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

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

attr-accept
Последняя версия

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

2.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

attr-accept
WebJar for attr-accept
Ссылка на сайт

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

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

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

https://github.com/react-dropzone/attr-accept

Скачать attr-accept

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

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

Зависимости

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

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

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

attr-accept

JavaScript implementation of the "accept" attribute for HTML5 <input type="file">

npm version semantic-release

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept for more information.

Installation

npm install --save attr-accept

Usage

var accept = require('attr-accept');
accept({
    name: 'my file.png',
    type: 'image/png'
}, 'image/*') // => true

accept({
    name: 'my file.json',
    type: 'application/json'
}, 'image/*') // => false

accept({
    name: 'my file.srt',
    type: ''
}, '.srt') // => true

You can also pass multiple mime types as a comma delimited string or array.

accept({
    name: 'my file.json',
    type: 'application/json'
}, 'application/json,video/*') // => true

accept({
    name: 'my file.json',
    type: 'application/json'
}, ['application/json', 'video/*']) // => true
org.webjars.npm

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

Версия
2.2.1
1.1.3
1.0.3
1.0.1