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
- Host: GitHub
- URL: https://github.com/postor/cross-json-post
- Owner: postor
- License: mit
- Created: 2022-05-11T07:12:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-12T00:54:22.000Z (about 3 years ago)
- Last Synced: 2024-04-29T20:23:01.289Z (about 1 year ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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))```