UNPKG

@brighter/storage

Version:

A JavaScript object storage library that enables local development.

16 lines (13 loc) 268 B
const existsApi = ({ provider, util }) => { // prettier-ignore const { validate, scope } = util.path return async path => { validate(path) const pathScoped = scope(path) return await provider.exists(pathScoped) } } export { existsApi }