{"id":25310360,"url":"https://github.com/maxisam/ngx-trim","last_synced_at":"2025-10-28T15:30:22.498Z","repository":{"id":66203602,"uuid":"106457246","full_name":"maxisam/ngx-trim","owner":"maxisam","description":"A directive to trim text input on keyup","archived":false,"fork":false,"pushed_at":"2018-10-20T15:09:21.000Z","size":1462,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T21:52:48.714Z","etag":null,"topics":["angular2","input","trim"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxisam.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-10T18:42:37.000Z","updated_at":"2021-06-06T00:16:18.000Z","dependencies_parsed_at":"2023-02-20T21:46:03.172Z","dependency_job_id":null,"html_url":"https://github.com/maxisam/ngx-trim","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":0.1923076923076923,"last_synced_commit":"cb8bedad10b5ea69fd92ed5dcd07f8ab05ffbc74"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fngx-trim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fngx-trim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fngx-trim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fngx-trim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxisam","download_url":"https://codeload.github.com/maxisam/ngx-trim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238667921,"owners_count":19510495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular2","input","trim"],"created_at":"2025-02-13T13:54:46.764Z","updated_at":"2025-10-28T15:30:22.088Z","avatar_url":"https://github.com/maxisam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/dt/ngx-trim.svg?style=flat-square)](https://www.npmjs.com/package/ngx-trim)\n[![GitHub release](https://img.shields.io/github/release/maxisam/ngx-trim.svg?style=flat-square)](https://github.com/maxisam/ngx-trim/releases)\n[![npm](https://img.shields.io/npm/l/ngx-trim.svg?style=flat-square)]()\n\n# ngx-trim\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.1.\n\nDemo: https://stackblitz.com/github/maxisam/ngx-trim\n\n## Installation\n\nTo install this library, run:\n\n```bash\n$ npm install ngx-trim --save\n```\n\n## Consuming your library\n\nOnce you have published your library to npm, you can import your library in any Angular application by running:\n\n```bash\n$ npm install ngx-trim\n```\n\nand then from your Angular `AppModule`:\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\n// Import the library\nimport { NgxTrimModule } from 'ngx-trim';\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [\n    BrowserModule,\n    // Import the library\n    NgxTrimModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule {}\n```\n\nOnce your library is imported, you can use its components, directives and pipes in your Angular application:\n\n```xml\n\u003c!-- You can now use your library component in app.component.html --\u003e\n\n\u003cinput type=\"text\"  placeholder=\"input\" [(ngModel)]=\"testInput\" ngxTrim\u003e\n```\n\n## Features\n\nTrim text after input event, `focusout` or `keyup`.\n\nYou can set it as `ngxTrim='focusout'` or\n\n## Development\n\nTo generate all `*.js`, `*.d.ts` and `*.metadata.json` files:\n\n```bash\n$ npm run build\n```\n\nTo lint all `*.ts` files:\n\n```bash\n$ npm run lint\n```\n\n## Acknowledgement\n\nThis project uses [generator-angular2-library](https://github.com/jvandemo/generator-angular2-library)\n\n## License\n\nMIT © [Sam Lin](mailto:maxisam@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxisam%2Fngx-trim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxisam%2Fngx-trim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxisam%2Fngx-trim/lists"}