Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
initials-avatar
Advanced tools
Generate an avatar based on a person's first name, last name, company name, and email
___
o$"""""$o
o$" "$o
o$ . . $o . . . ___ . . . __ . . . . ___ . __
o$ | /_\ $o | |\ | | | | /_\ | '--. /_\ \ / /_\ | /_\ |__)
o$ | / \ $o | | \| | | | / \ |__ \__/ / \ \/ / \ | / \ | \
o$ $o
o$ $o
'"+$$$+"'
An Ember CLI Addon that generates an avatar based on the initials of someone with a first and last name.
ember install initials-avatar
Initials-avatar is intended to be a "default" avatar when an actual image is not present.
If neither first or last names are present, a single initial for the company will be displayed:
{{initials-avatar
firstName=userGivenName
lastName=userFamilyName
company=userCompany
email=userEmail
image=userProfileImageUrl
}}
There are also color classes that you can leverage to control the styling of your different initials avatars:
{{initials-avatar
firstName=userGivenName
lastName=userFamilyName
company=userCompany
email=userEmail
image=userProfileImageUrl
colorIndex=userid
maxColorIndex=3 {{!-- you only have 3 color classes defined --}}
}}
You can use a background-color directly you can pass in a color
property.
This is useful if you want to generate colors from unique strings like emails or ids.
This background-color style will only be applied if image
is a "falsy" value:
{{initials-avatar
firstName=userGivenName
lastName=userFamilyName
company=userCompany
email=userEmail
color="#f6f8fa"
}}
git clone <repository-url>
this repositorycd initials-avatar
npm install
ember server
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember build
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.
FAQs
Generate an avatar based on a person's first name, last name, company name, and email
The npm package initials-avatar receives a total of 1 weekly downloads. As such, initials-avatar popularity was classified as not popular.
We found that initials-avatar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.