WIP - add extractor, generate snippet_data
This commit is contained in:
68
node_modules/ccount/readme.md
generated
vendored
Normal file
68
node_modules/ccount/readme.md
generated
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
# ccount
|
||||
|
||||
[![Build][build-badge]][build]
|
||||
[![Coverage][coverage-badge]][coverage]
|
||||
[![Downloads][downloads-badge]][downloads]
|
||||
[![Size][size-badge]][size]
|
||||
|
||||
Count characters.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][]:
|
||||
|
||||
```bash
|
||||
npm install ccount
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
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][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[build-badge]: https://img.shields.io/travis/wooorm/ccount.svg
|
||||
|
||||
[build]: https://travis-ci.org/wooorm/ccount
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/ccount.svg
|
||||
|
||||
[coverage]: https://codecov.io/github/wooorm/ccount
|
||||
|
||||
[downloads-badge]: https://img.shields.io/npm/dm/ccount.svg
|
||||
|
||||
[downloads]: https://www.npmjs.com/package/ccount
|
||||
|
||||
[size-badge]: https://img.shields.io/bundlephobia/minzip/ccount.svg
|
||||
|
||||
[size]: https://bundlephobia.com/result?p=ccount
|
||||
|
||||
[npm]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: license
|
||||
|
||||
[author]: https://wooorm.com
|
||||
Reference in New Issue
Block a user