New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
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

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

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