JSPM

filesrocket-local

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q9850F
  • License MIT

Filesrocket service that manages your files locally

Package Exports

  • filesrocket-local
  • filesrocket-local/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (filesrocket-local) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

filesrocket-local

npm version JavaScript Style Guide

Filesrocket service to manage your files on your own server.

Install

npm i filesrocket-local

Usage

To use the service add the following content.

import { Filesrocket } from "filesrocket";
import { LocalFileService } from "filesrocket-local";

// Initialize filesrocket
const filesrocket = new Filesrocket();

// Setting service
const local = new LocalFileService({
  pagination: { default: 15, max: 50 },
  host: "http://localhost:3030",
  directory: "uploads"
});

// Register service
filesrocket.register("local", local);

// Recovering service
const fileService = filesrocket.service("local");

// Recovering controller
const fileController = filesrocket.controller("local");