ccount

WebJar for ccount

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

ccount
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

ccount
WebJar for ccount
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/wooorm/ccount

Download ccount

How to add to project

<!-- 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"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.5
1.0.4
1.0.3