This package has been deprecated

Author message:

This project has been renamed to @hyoretsu/decorators. Install using @hyoretsu/decorators instead.

@hyoretsu/nest-decorators
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

A collection of useful decorators for Nest.js

  • IsOptional()

How is this different from the default IsOptional? This one also checks for undefined and empty strings.

  • Multipart()

This is a decorator written for Fastify to easily upload files (while also validating fields just like @Body() with a depth of 1). Requires @fastify/multipart to be setup prior to using it.

You need environment variables to use it.

  • STORAGE_DRIVER = "local" | "s3"

If using disk storage:

  • UPLOAD_FOLDER

If using Amazon S3:

  • AWS_ACCESS_KEY_ID
  • AWS_BUCKET
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION

Package Sidebar

Install

npm i @hyoretsu/nest-decorators

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

233 kB

Total Files

12

Last publish

Collaborators

  • hyoretsu