Skip to content

Latest commit

 

History

History

tammy-adapter-xhr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tammy // xhr

npm package

Note: xhr adapter

NPM version NPM Downloads


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;