1.0.0 • Published 2 years ago
cross-json-post v1.0.0
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<any>;
postJSON(url,{abc:123}).then(jsonObj=>console.log(jsonObj))
1.0.0
2 years ago