https://github.com/realign/tiny-sender
A tiny AJAX sender.
https://github.com/realign/tiny-sender
Last synced: 3 months ago
JSON representation
A tiny AJAX sender.
- Host: GitHub
- URL: https://github.com/realign/tiny-sender
- Owner: ReAlign
- Created: 2019-08-28T11:46:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-09T15:22:47.000Z (over 3 years ago)
- Last Synced: 2024-12-28T12:14:04.519Z (5 months ago)
- Language: TypeScript
- Size: 50.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tiny-sender
[![NPM version][npm-image]][npm-url]
[npm-image]: https://img.shields.io/npm/v/tiny-sender.svg?longCache=true&style=for-the-badge
[npm-url]: https://www.npmjs.com/package/tiny-sender> A tiny HTTP client for Browser, XHR is used by default, built-in progress-bar and notify, support for custom core, such as axios.
## Usage
```js
import TinySender from 'tiny-sender';const tinySender = new TinySender(options);
async () => {
try {
const json = await tinySender.get(url);
console.log(json);
} catch(err) {
console.log(err);
}
};
```## Documentation