ts-sn-utilities
⭐ Give a Star!
If you like or are using this project please give it a star here. Thanks!
✨ Features
- Debouncer: Using the Debounce Operators, we wait until the user pauses typing before sending an HTTP Request. This will eliminates unnecessary HTTP requests.
☀️ License
🖥 Environment Support
📦 Installation
NPM
npm install ts-sn-utilities --save
🔨 Usage
In your service write this code.
getFilteredByCode(code: string): Observable<ApiResponse> {
this.debouncerHelper.resetData();
return this.debouncerHelper.debouncerOnly<string, ApiResponse>(1000, code, (request) => this.filterBy(request));
}
🔗 Links
⌨️ Development
$ git clone git@github.com:ShadyNagy/ts-sn-utilities.git
$ cd ts-sn-utilities
$ npm install
$ cd ./projects/ts-sn-utilities
$ npm install
$ npm run build
$ npm run start
🤝 Contributing
We welcome all contributions. Please read our CONTRIBUTING.md first. You can submit any ideas as pull requests or as GitHub issues.
🎉 Users
We list some users here, if your company or product uses ts-sn-utilities, let us know here!