Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

count-pattern

akbarjondev5ISC1.3.1

This package is used for count given pattern in the given text. Works like a regexp search.

count text, count patterns, count pattern in text, occurrence, match

readme

count-pattern

Pattern counter in text without build in function, Ever

Usage

const cp = require('count-pattern')
const result = cp('banana', 'an')
console.log(result) //2

Features

  • Library has written without any build in functions