Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stendahls/libravatar-server

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stendahls/libravatar-server

A node implementation of the Libravatar API

  • 1.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

Libravatar Server

A node implementation of the Libravatar API

Usage

$ npx @stendahls/libravatar-server

Without npx

npm i @stendahls/libravatar-server --only=production
./node_modules/.bin/libravatar-server

Configuration

Create a .env file in the folder you start the server from.
If you run from docker, create the .env file in the folder you build.

Available values

LISTEN_PORT
default: 4000
allowed values: Kinda whatever you want

DEFAULT_SIZE
default: 80
allowed values: 1 - 512

PROVIDER
default: file
allowed values: file elvis

There might also be some specific options for some providers

Providers

File

Loads avatars from a folder.
The folder should contain jpg images where the name of the file should be the email you want the avatar to be for. my.email@example.com.jpg

FILE_PROVIDER_RAW_FOLDER
default: ./raw
allowed values: Any path

Elvis

Loads avatars from a "container" in Elvis DAM

ELVIS_PROVIDER_SERVER
Full url to Elvis server

ELVIS_PROVIDER_USER
Username to log in with

ELVIS_PROVIDER_PASSWORD
Password for the user to login with

ELVIS_PROVIDER_AVATAR_CONTAINER
What container-id to look for avatars in

ELVIS_PROVIDER_AVATAR_DOMAIN
Domain for the avatars found in Elvis, such as example.com

FAQs

Package last updated on 20 Aug 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc