Skip to content

hyper63/hyper-adapter-fs

Repository files navigation

hyper-adapter-fs

A Storage port adapter that uses the local file system for object storage in the hyper service framework

Nest Badge Test Current Version


Table of Contents

Getting Started

hyper.config.js

import { default as fs } from 'https://x.nest.land/[email protected]/mod.js'

export default {
  app,
  adapter: [{ port: 'storage', plugins: [fs({ dir: './data' })] }],
}

Installation

This is a Deno module available to import from nest.land

deps.js

export { default as fs } from 'https://x.nest.land/[email protected]/mod.js'

Features

  • Create an bucket as a directory
  • Remove an bucket as a directory
  • List buckets as directories
  • Put an object into a bucket as a directory
  • Remove an object from a bucket as a directory
  • Get an object from a bucket as a directory
  • List objects in a bucket as a directory

Methods

This adapter fully implements the Storage port and can be used as the hyper Storage service adapter

See the full port here

Contributing

Contributions are welcome! See the hyper contribution guide

Testing

deno task test

To lint, check formatting, and run unit tests

License

Apache-2.0