ts-sn-utilities
TypeScript icon, indicating that this package has built-in type declarations

0.2.7 • Public • Published

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

  • Angular ^12.0.0 npm package

📦 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

PRs Welcome

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!

Package Sidebar

Install

npm i ts-sn-utilities

Weekly Downloads

1

Version

0.2.7

License

MIT

Unpacked Size

42.9 kB

Total Files

39

Last publish

Collaborators

  • shadynagy