ccount

WebJar for ccount

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

1.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/wooorm/ccount

Скачать ccount

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

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

Зависимости

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

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

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

ccount

Build Coverage Downloads Size

Count characters.

Install

npm:

npm install ccount

Use

var ccount = require('ccount')

ccount('foo(bar(baz)', '(') // => 2
ccount('foo(bar(baz)', ')') // => 1

API

ccount(value, character)

Get the total count of character in value.

Parameters
  • value (string) — Content, coerced to string
  • character (string) — Single character to look for
Returns

number — Number of times character occurred in value.

License

MIT © Titus Wormer

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

Версия
1.0.5
1.0.4
1.0.3