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

imgflo-url

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgflo-url

Conveniently produce authorized imgflo URLs.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
4
Weekly downloads
 
Created
Source

imgflo-url Build Status

Conveniently produce authorized imgflo URLs.

Installing

Compatible with node.js and browserify.

npm install --save imgflo-url

Creating a imgflo URL using API

Example in CoffeeScript

imgflo = require 'imgflo-url'

config =
  server: 'https://imgflo.herokuapp.com/'
  key: 'key'
  secret: 'secret'

params =
  input: 'https://pbs.twimg.com/media/BlM0d2-CcAAT9ic.jpg:large'
  color1: '#0A2A2F'
  color2: '#FDE7A0'
  height: 200
url = imgflo config, 'gradientmap', params

Making a GET request of url will fetch image from input URL and process it through the gradientmap graph, applying the specified parameters (in this case color1, color2, height).

For more examples, see the tests.

Create an imgflo URL using commandline

export IMGFLO_API_KEY=key
export IMGFLO_API_SECRET=secret

# if node modules are not on PATH already
# PATH=${PATH}:./node_modules/.bin
imgflo-url passthrough --input http://example.com/barbaz.png --width 300

Running tests

Run npm test.

Keywords

FAQs

Package last updated on 05 Jan 2017

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