New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

isomorphic-request

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

isomorphic-request

A tiny HTTP client capable of working in Node or the browser.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Request

A tiny HTTP/S client smart enough to work in Node or in the browser.

To see request work in the browser, load index.html. RequireJS is configured by src/browser.js, which loads src/index.js, the main file. The request variable is then a global variable you can play with in the browser console, like so: request.request({ /* AJAX parameters */ })

To see request execute on the command line, execute node src/node.js. This will log to the command line the output from several examples.

:satellite: API

error
loop
request
getJSON
getResponse

:wrench: Contributing

Testing

grunt intern:client is equivalent to intern-client config=tests/intern

grunt intern:runner is equivalent to intern-runner config=tests/intern

To run the tests on a Selenium server like SauceLabs, set your credentials in a config.json file at the root of the application. See the Intern Grunt tasks to learn more.

Style Guide

Follow the jQuery Style Guide.

Dependencies

Developers hosting or contributing to this project require the tools that extend, test, and maintain it:

  • Python: Python v2.7+ is a prerequisite of Node.
  • Node and npm: Node provides an environment on which to execute JavaScript processes, while npm manages packages.

Authors

Luz M. Costa luz.costa@adops.com

FAQs

Package last updated on 13 Oct 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