2.0.0-alpha.6 • Published 5 years ago
ngx-stringly v2.0.0-alpha.6
Installation
First, save ngx-stringly
to your dependencies.
npm install ngx-stringly --save
How it Works
Import ngx-stringly
to your component.
import { Searcher } from 'ngx-stringly/ngx';
Use Index
in your functions
const text = 'The quick brown fox jumps over the lazy dog.';
const find = 'lazy';
this.result = Searcher.parse(text, find, false);
Result will be
{
"prefix": "The quick brown fox jumps over the ",
"content": "lazy",
"suffix": " dog."
}
Run Example
I'm using angular 7 for example.
Clone the repository
git clone https://github.com/rizentium/ngx-stringly.git
Open example
directory
cd example
Install packages
npm install
Run server
ng serve
And navigate your browser to http://localhost:4200
2.0.0-alpha.6
5 years ago
2.0.0-alpha.5
5 years ago
2.0.0-alpha.4
5 years ago
2.0.0-alpha.3
5 years ago
2.0.0-alpha.2
5 years ago
2.0.0-alpha.1
5 years ago
2.0.0-alpha
5 years ago
1.0.0
5 years ago
0.0.0
5 years ago