
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
Call remote HTTP RESTful services in easy way, both in browser and Node.js.
import exovision from 'exovision' // const exovision = require('exovision').default
// using process.ENV
const myRemoteService = exovision('MY_REMOTE_SERVICE') // process.env.MY_REMOTE_SERVICE === https://myremoteservice.com
// or using uri
const myRemoteService2 = exovision('https://myremoteservice.com')
// now we have 4 methods
myRemoteService.get()
myRemoteService.post()
myRemoteService.put()
myRemoteService.del()
All methods have same signature:
type ExovisionBoundTransmit = (
path: string, // path to add on baseurl, eg. /rabbids
data?: any, // can be any POJO: if the method is get, it will be transformed to querystring otherwise to body
options?: ITransmissionOptions, // see below
) => Promise<any>
This is ITransmissionOptions interface:
interface ITransmissionOptions {
contentType?: string // defaults to 'application/json'
responseType?: string // defaults to 'json'
transcodeResponse?<O, T>(data: O): T | Promise<T>
echoCall?: boolean // simulates the call and returns request (for testing and debugging)
token?: string // bearer login token, added to headers['Authorization'] = `Bearer ${token}`
}
transcodeResponse: custom transformation function. For example, if you need to convert xml to json you can pass a transform function that will be invoked after the remote call is done:
import { parse } from 'fast-xml-parser'
const trasformXmlToJson = (data: any) =>
parse(data, { ignoreAttributes: false, attributeNamePrefix: '' })
myRemoteService.get('/rabbids', {}, {
contentType: 'text/xml',
responseType: 'text',
transcodeResponse: trasformXmlToJson
})
All methods return a promise with parsed content (content type is JSON) or whatever transcodeResponse custom function returns.
In case of error during remote call it will be rertuned a rejected promise with interference instance
FAQs
Call remote HTTP services in an easy way, both in brwoser and node.js
The npm package exovision receives a total of 0 weekly downloads. As such, exovision popularity was classified as not popular.
We found that exovision demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.