Files
node/tools/eslint/node_modules/ccount
Vse Mozhet Byt b4fea2a3d6 doc: add eslint-plugin-markdown
* install eslint-plugin-markdown
* add doc/.eslintrc.yaml
* add `<!-- eslint-disable rule -->` or `<!-- eslint-disable -->`
  for the rest of problematic code
* .js files in doc folder added to .eslintignore
* update Makefile and vcbuild.bat

PR-URL: https://github.com/nodejs/node/pull/12563
Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
2017-04-25 00:06:17 +03:00
..
2017-04-25 00:06:17 +03:00
2017-04-25 00:06:17 +03:00
2017-04-25 00:06:17 +03:00
2017-04-25 00:06:17 +03:00
2017-04-25 00:06:17 +03:00

ccount Build Status Coverage Status

Count characters.

Installation

npm:

npm install ccount

Usage

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