{"id":13406814,"url":"https://github.com/akopdev/ng-person","last_synced_at":"2025-07-26T13:32:41.092Z","repository":{"id":38606479,"uuid":"240671966","full_name":"akopdev/ng-person","owner":"akopdev","description":"A universal avatar component for Angular 2+ applications that generates truly unique colored letter avatar based on provided name.","archived":false,"fork":false,"pushed_at":"2022-06-03T01:34:56.000Z","size":1146,"stargazers_count":18,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-24T18:08:01.363Z","etag":null,"topics":["angular","angular2","avatar","avatar-placeholder","initials-avatar","letter-avatar"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akopdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-15T08:44:41.000Z","updated_at":"2024-05-14T00:19:08.000Z","dependencies_parsed_at":"2022-09-06T08:53:46.500Z","dependency_job_id":null,"html_url":"https://github.com/akopdev/ng-person","commit_stats":null,"previous_names":["akopdev/ng-person","akopkesheshyan/ng-person"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akopdev%2Fng-person","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akopdev%2Fng-person/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akopdev%2Fng-person/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akopdev%2Fng-person/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akopdev","download_url":"https://codeload.github.com/akopdev/ng-person/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227685902,"owners_count":17804134,"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":["angular","angular2","avatar","avatar-placeholder","initials-avatar","letter-avatar"],"created_at":"2024-07-30T19:02:39.984Z","updated_at":"2024-12-02T06:36:01.089Z","avatar_url":"https://github.com/akopdev.png","language":"TypeScript","readme":"# ng-person\n\nA universal avatar component for Angular 2+ applications that generates truly unique colored letter avatar based on provided name. It also supports user photo, name with subtitle and different styles.\n\n![demo](demo.png)\n\n## Installation\n\nInstall ng-person component using NPM:\n\n```\n$ npm install ng-person --save\n```\n\n## Usage\n\n1. Once you have installed ng-person, you can import it into your AppModule:\n\n```javascript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\nimport { NgPersonModule } from 'ng-person';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    // Specify NgPersonModule as an import \n    NgPersonModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n1. Call component from your Angular application:\n\n```html\n\u003cng-person name=\"Akop Kesheshyan\"\u003e\u003c/ng-person\u003e\n```\n\n## Examples\n\n```html\n\u003cng-person name=\"Akop Kesheshyan\" title=\"Software Developer\"\u003e\u003c/ng-person\u003e\n\n\u003cng-person picture=\"https://example.com/pic.jpg\" showName=\"false\"\u003e\u003c/ng-person\u003e\n\n\u003cng-person name=\"Akop Kesheshyan\" size=\"large\" round=\"true\"\u003e\u003c/ng-person\u003e\n```\n\n## Options\n\nAttribute | Type    | Description\n--------- | ------- | ------------------------------------------------------------------------------\npicture   | string  | Absolute path to a picture image.\nname      | string  | Specifies a name to be shown on the right of a user picture.\ntitle     | string  | Specifies a title to be shown under the name.\nshowName  | boolean | Whether to show a user name or not.\nround     | boolean | Round corners of the picture box.\nsize      | string  | Size of the component. Possible values: `small`, `medium (default)`, `large`, `giant`.\n\n## License\n\nMIT \u0026copy; [Akop Kesheshyan](mailto:hello@akop.dev)","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakopdev%2Fng-person","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakopdev%2Fng-person","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakopdev%2Fng-person/lists"}