1.0.2 • Published 6 years ago

tammy-adapter-xhr v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Tammy // xhr

npm package

Note: xhr adapter

NPM version NPM Downloads npm.io


Installation

Load tammy via classical <script> tag

<script src="//cdn.jsdelivr.net/npm/tammy/umd.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/tammy-adapter-xhr/umd.min.js"></script>
tammy.http.install(tammyAdapterXhr);

CommonJS style with npm

npm install tammy --save

# for the browser
npm install tammy-adapter-xhr --save
// es6
import { http } from 'tammy';
import xhr from 'tammy-adapter-xhr';

http.defaults.adapter = xhr;