capture-n-sequential-chars-in-string
v1.0.2
Published
this is a re-created debounce version with less codes in ES6 built with Rollup
Downloads
3
Readme
captureNsequentialChars
This is to capture the first matched n sequential characters in a string.
Installation
Node JS (>=8.4.0)
npm install capture-n-sequential-chars-in-string
or
yarn add capture-n-sequential-chars-in-string
browser
<script src="https://unpkg.com/capture-n-sequential-chars-in-string/dist/captureNsequentialChars.umd.js" />
Usage
ES Modules
import captureNsequentialChars from 'capture-n-sequential-chars-in-string'
common js
const captureNsequentialChars = require('capture-n-sequential-chars-in-string')
browser js
var captureNsequentialChars = window.captureNsequentialChars
API
captureNsequentialChars(string,n)
License
MIT