(require("src/util/reader-for-url"))(parsedUrl) → {String|undefined}
Tries to find a reader for a given parsed url.
Parameters:
Name | Type | Description |
---|---|---|
parsedUrl |
Object | object containing a protocol (i.e. result of `url.parse(myUrl)`) |
- Source:
Returns:
writer if found, `undefined` otherwise
- Type
- String | undefined
Example
readerForUrl('file:///tmp/foo') // data reader