Skip to content

Commit

Permalink
feat: expose builtinDrivers
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 13, 2022
1 parent e361f36 commit be34d5e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@ export * from './storage'
export * from './types'
export * from './utils'
export { defineDriver } from './drivers/utils'

export const builtinDrivers = {
cloudflareKVHTTP: 'unstorage/drivers/cloudflare-kv-http',
cloudflareKVBinding: 'unstorage/drivers/cloudflare-kv',
fs: 'unstorage/drivers/fs',
github: 'unstorage/drivers/github',
http: 'unstorage/drivers/http',
localStorage: 'unstorage/drivers/localstorage',
memory: 'unstorage/drivers/memory',
overlay: 'unstorage/drivers/overlay',
redis: 'unstorage/drivers/redis'
}

0 comments on commit be34d5e

Please sign in to comment.