An open API service indexing awesome lists of open source software.

https://github.com/postor/cross-json-post

tiny lib that only handle json post for both browser and node
https://github.com/postor/cross-json-post

Last synced: 2 months ago
JSON representation

tiny lib that only handle json post for both browser and node

Awesome Lists containing this project

README

        

# cross-json-post
tiny lib that only handle json post for both browser and node

```
import postJSON from 'cross-json-post'

// (url: string, data: any, headers?:any) => Promise;
postJSON(url,{abc:123}).then(jsonObj=>console.log(jsonObj))

```