You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

browser-get

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-get

IE8+ GET requests for the browser with an ES6 Promise interface.

0.2.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

browser-get Build Status

IE8+ compatible GET requests for the browser. Includes an ES6 promise polyfill.

Installation

Grab the dist/browser-get.js file and include it at the bottom of your page:

<script src="browser-get.js"></script>

Or use Browserify:

npm install browser-get --save
var get = require('browser-get');

Usage


// Returns an ES6 promise.
var promise = get('foo/bar/something-or-other.whatever');

// When request completes.
promise.then(function( resp ){
  console.log( resp );
});

// If request fails.
promise.catch(function( resp ){
  console.log( resp );
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2014 Chris Contolini
Licensed under the MIT license.

Keywords

browser-get

FAQs

Package last updated on 11 Jul 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