- Copy the file 'multer-storage-hashing.ts' to your development directory.
- Import the file in your typescript of choice.
- Now you can initialize the multer storage:
Example:
const storage = new MulterStorageHashing({
// ... optional storage options
Example:
const storage = new MulterStorageHashing({
// ... optional storage options
I hereby claim:
To claim this, I am signing this object:
This code makes use of two classes: TsWorker and TsWorkerJob. TsWorker initializes an inline worker and runs one job. The TsWorker class needs to be initialized with a function and the function's arguments as an array.
const tsWorker = new TsWorker();
// create a new job. You can create a sub class of TsWorker so that you don't have to add the function any time.
/* | |
Version 1.2.0 | |
For new versions of this class go to https://gist.github.com/julianpoemp/0c4dc13541b863f6503026333eb6b2b6 | |
License: MIT | |
*/ | |
export class SubscriptionManager<T> { | |
private subscriptions: { | |
id: number, | |
tag: string, |
I created a new htaccess generator for angular apps that makes it easier for you to create the optimal htaccess file: https://julianpoemp.github.io/ngx-htaccess-generator/
The goal of this generator is to create the optimal .htaccess file for Angular apps easily. By default the generator creates an .htaccess file that solves the route redirection issue. To make it easier for you I created a kind of interview mode with some questions. As an additional feature the generator supports adding exclusions for example if you have installed a blog in a subdirectory of your web application and more!
The generator 😁: https://julianpoemp.github.io/ngx-htaccess-generator/
The project: https://github.com/julianpoemp/ngx-htaccess-generator