2.0.0 • Published 5 years ago

@injectable/file-hosting-service v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

File Hosting Service

Service for hosting files with compress option.

This package works with the Injectable Core.

Functions

Registers an id for a file.

public registerFileId(): number

Hosts an node buffer on a route.

public setFile(
    injectableName: string,
    fileId: number,
    route: string,
    buffer: Buffer,
    encodings: Array<Encoding>,
    onRequest?: OnRequest
): number

Hosts the file from the path on a route.

public setFileFromPath(
    injectableName: string,
    fileId: number,
    route: string,
    path: string,
    encodings: Array<Encoding>,
    onRequest?: OnRequest
): number

Deletes the file (also the path) wth the given id.

public deleteFile(
    injectableName: string,
    fileId: number
): void

License

See the LICENSE file for license rights and limitations (MIT).

2.0.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago