1.0.0 • Published 11 years ago
quote-scanner v1.0.0
quote-scanner
Scanner quote postion for skip quote content
var QuoteScanner = require('quote-scanner');install
npm install quote-scanner --savetest
mochaAPI
QuoteScanner(str)
- {string}
strrequired
var qs = new QuoteScanner("a'b'c'd\\'d'");pos
The postion of quote
// [{start: 1, end: 3 }, { start: 5, end: 10}]
qs.posisIn(index)
Check the postion is in string
- {int}
indexrequired
The start position of string
qs.isIn(3)1.0.0
11 years ago