https://github.com/tradle/get-binary
https://github.com/tradle/get-binary
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tradle/get-binary
- Owner: tradle
- Created: 2018-02-14T22:54:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-15T15:37:00.000Z (over 8 years ago)
- Last Synced: 2025-03-06T15:18:48.639Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-binary
## Usage
```js
const getBinary = require('get-binary')
getBinary('https://tradle.io/images/logo.png')
.then(({ body, mimeType }) => doStuff(body, mimeType))
.catch(err => itWasAllInVain(err))
```