1.0.6 • Published 4 years ago

edsukraine-sender v1.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

sender

Library for sending requests to servers

Usage code example

const sender = require('edsukraine-sender')

const url = 'https://jsonplaceholder.typicode.com/users'

sender('GET', url)
  .then(data => console.log(data))
  .catch((e) => console.log('error', e))

const body = {
  name: 'Andrii',
  age: 29
}

sender('POST', url, body)
  .then(data => console.log(data))
  .catch(() => console.log('error'))

Usage Repository Example

Link to repository

https://github.com/edsukraine/sender-usage-example

Try it now

git clone https://github.com/edsukraine/sender-usage-example.git
cd sender-usage-example
npm install
parcel index.html

Open http://localhost:1234/ in browser

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago