# enhanced-avatar

> AngularJS directive to get generic user avatars based on their initials.

Latest version **0.0.1** (published 2017-04-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install enhanced-avatar
pnpm add enhanced-avatar
yarn add enhanced-avatar
bun add enhanced-avatar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-04-26 |
| First published | 2017-04-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | miqe |

## Links

- npm: https://www.npmjs.com/package/enhanced-avatar
- Repository: https://github.com/Miqe/enhancedAvatar
- Homepage: https://github.com/Miqe/enhancedAvatar#readme
- Issues: https://github.com/Miqe/enhancedAvatar/issues
- npm.io page: https://npm.io/package/enhanced-avatar

## Recent versions

- 0.0.1 (latest) — 2017-04-26

## README

Generic user avatar directive built with AngularJS
===================

 enhancedavatar is an AngularJS based directive which can be used to generate avatar/img for user based on their name.

##### This is enhanced version of [userAvatar](https://github.com/khizarnaeem/userAvatar)


## [Demo](http://plnkr.co/edit/QZaqC7WCnz8An0oJjmmU?p=preview")

Requirements
AngularJS verison 1.5.0+

## How to use

1- Add a `<script>` to your `index.html`:

```html
<script src="/path_to_js_file/enhancedavatar.js"></script>
<link rel="stylesheet" href="/path_to_js_file/style.css" />
```
if you have already an angular app mofule defined in your project then themove following line and repalce appModule with your application module instance.

```javascript
var appModule = angular.module('app', ['enhancedavatar']);
```
2- copy css from style.css into your css file or link to this file in your project.

```html
<link rel="stylesheet" href="/path_to_js_file/style.css" />
```
3- use directive in html like this

```html
<div class="enhancedavatar" name="Mike S"></div> 
<!-- or -->
<div class="enhancedavatar" width="2em" height="2em" name="Mike S"></div> 
<!-- or -->
<div class="enhancedavatar" width="2em" height="2em" img="image-path"></div>

---
_Source: https://npm.io/package/enhanced-avatar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
