filesrocket-local
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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");

/filesrocket-local/

    Package Sidebar

    Install

    npm i filesrocket-local

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    24.8 kB

    Total Files

    21

    Last publish

    Collaborators

    • ivanzm123