0.1.0 • Published 4 years ago
free-svg v0.1.0
Free SVG Node.js Library
A Free SVG (FreeSVG.org) client library for Node.js.
Install
npm install free-svgUsage
const {FreeSVG} = require('free-svg');
const freeSVG = new FreeSVG('FreeSVGBearerToken');
freeSVG.search({query: 'example search query'})
.then(result => {
// Do something with the search result.
})
.catch(error => {
// Request failed.
});API
Options
agent- defaultundefined;hostname- defaultreserve.freesvg.org; The hostname that the client connects to. Setting this may be valueable for debugging/testing or if FreeSVG changes its API address.protocol- defaulthttps:;port- default443;timeout- defaultundefined; Milliseconds before a request times out.
0.1.0
4 years ago