Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabiospampinato/string-indexes
Retrieves all indexes, in non-overlapping ranges, of a substring in a string.
https://github.com/fabiospampinato/string-indexes
all index indexes string
Last synced: about 1 month ago
JSON representation
Retrieves all indexes, in non-overlapping ranges, of a substring in a string.
- Host: GitHub
- URL: https://github.com/fabiospampinato/string-indexes
- Owner: fabiospampinato
- License: mit
- Created: 2020-01-29T11:57:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-24T16:28:50.000Z (over 1 year ago)
- Last Synced: 2024-11-01T11:46:39.225Z (2 months ago)
- Topics: all, index, indexes, string
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# String Indexes
Retrieves all indexes, in non-overlapping ranges, of a substring in a string.
## Install
```sh
npm install --save string-indexes
```## Usage
```ts
import getIndexes from 'string-indexes';getIndexes ( 'xxxx__xxxx__xxxxx', 'xx' ); // => [0, 2, 6, 8, 12, 14]
```## License
MIT © Fabio Spampinato