New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-img-placeholder

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-img-placeholder

run a local image placeholder service

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
97
increased by19.75%
Maintainers
1
Weekly downloads
 
Created
Source

LIPS v1.0.1

local image placeholder service

Install dependencies

The LIPS service was rewritten and depends now on Cairo

OSCommand
OS Xbrew install pkg-config cairo libpng jpeg giflib
Ubuntusudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
Fedorasudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel
Solarispkgin install cairo pkg-config xproto renderproto kbproto xextproto
WindowsInstructions on this wiki

El Capitan users: If you have recently updated to El Capitan and are experiencing trouble when compiling, run the following command: xcode-select --install. Read more about the problem on Stack Overflow.

Clone this repository to your local machine

git clone https://github.com/ifahrentholz/lips .

Run npm:install to install the necessary node modules

npm install

Start the service

npm start

Open your Browser at:

http://localhost:3000/lips/800x600.png

Configure the LIPS service to fit your needs:

lib/config/config.js

User settings

settingdefaulttypeparameter
serviceNamelipsString-
port3000Integer-
envdevelopmentString-
delay0Integer&delay=5000
contentType"png"String.png
maxAge3153600Integer&maxAge=0
expiryDatenew Date()DateTime&expiryDate=[DATETIME]
fontArialString&font=Arial
fontSize24pxString&fontSize=12px
fontColor000000HEX&fontColor=fff000
texttrueBoolean&text=false
fill09FHEX&fill=bada55

TODO's

  • Provide a home route with an introduction index page

Keywords

FAQs

Package last updated on 15 Dec 2015

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