Methods
(static) requestNdjson(url) → {promise}
- Source:
- Since:
- 0.1.0
Return a request to a ndjson file as a promise.
Example
requestNdjson('ndjson/url')
.then(x => console.log(x))
.catch(err => console.error(err));
async function foo() {
const x = await requestNdjson('ndjson/url');
// ...;
}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL for the request (GET). |
Returns:
- Type
- promise