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

vectogram

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vectogram

Image to SVG conversion server

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#vectogr.am

API to convert image url to SVG path over http.

##install

  npm install vectogram

##how do I use this?

run a vectogram server instance

var Vectogram = require('vectogram');

var options = { port: 80, host: '127.0.0.1' };

var server = new Vectogram(options) //start up the server

now you can make http requests to this server.

Resource:

  • GET http://127.0.0.1/url_to_image

parameter:

  • pathonly (optional - defaults to false)

values:

  • true
  • false

Example http client request:

var http = require('http');

var options = { 
  host: '127.0.0.1'
, port: 80
, path: '/v1/' + 'http://www.google.com/images/srpr/logo3w.png'
};

var request = http.get(options, function (res) {
  var reply = '';
  res.on('data', function (chunk) {
    reply += chunk;
  });
  res.on('end', function () {
    console.log(reply);
  });
});

request.on('error', function (e) {
  console.log('http client error:', e)
});

Keywords

FAQs

Package last updated on 19 Jul 2012

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