Socket
Socket
Sign inDemoInstall

@dictadata/s3-filesystem

Package Overview
Dependencies
66
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dictadata/s3-filesystem

S3 filesystem plugin for @dictadata/storage-junctions.


Version published
Maintainers
1
Created

Readme

Source

s3-filesystem 1.8.x

S3 filesystem plugin for @dictadata/storage-junctions.

Installation

npm i @dictadata/storage-junctions
npm i @dictadata/s3-filesystem

Registering the Plugin

const storage = require("@dictadata/storage-junctions");
const S3FileSystem = require("@dictadata/s3-filesystem");

storage.FileSystems.use("s3", S3FileSystem);

Usage in Storage Memory Trace

Example SMT string for accessing json files in an S3 bucket.

let smt = "json|s3:dictadata.org/data/|foofile.json|*"

Where:

  • "json" - smt model of junction used to encode and query data in the storage source.
  • "s3:dictadata.org/data/" - smt locus locator address for the storage source.
    • "S3" - filesystem model used to access data containers in the storage source.
    • "dictadata.org" - S3 bucket name.
    • "/data/" - S3 prefix for object names.
  • "foo_*" - smt schema specification for S3 object names with wildcard.
  • "*" - smt key * represents all constructs.

Support Junction Methods

Storage FileSystems support the following methods.

  • list()
  • createReadStream()
  • createWriteStream()
  • getFile()
  • putFile()
  • dull()

Keywords

FAQs

Last updated on 28 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc