Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 466 Bytes

read.md

File metadata and controls

19 lines (12 loc) · 466 Bytes

Read

Reads enable dynamic loading of content, usually by fetching data from a remote server using an HTTP request.

register(uri, read)

Registers a custom read to a specific URI or URI scheme.

Usage

import { read } from '@skele/classic'

import navigationRead from './reads/navigation'
import articleRead from './reads/article'

read.register('x-myapp://navigation', navigationRead)
read.register(/x-myapp:\/\/article/, articleRead)