# nestjs-custom-decorators-decorators

> custom nest decorators for nestjs-custom-decorators

Latest version **1.1.0** (published 2020-07-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install nestjs-custom-decorators-decorators
pnpm add nestjs-custom-decorators-decorators
yarn add nestjs-custom-decorators-decorators
bun add nestjs-custom-decorators-decorators
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-07-02 |
| First published | 2020-07-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 247 |
| Author | meriamBenSassi |
| Maintainers | algoanbot |
| Keywords | nest, decorator, jwt |

## Links

- npm: https://www.npmjs.com/package/nestjs-custom-decorators-decorators
- Repository: https://github.com/algoan/nestjs-components
- Homepage: https://github.com/algoan/nestjs-components/tree/master/packages/nestjs-custom-decorators-decorators#readme
- Issues: https://github.com/algoan/nestjs-components/issues
- npm.io page: https://npm.io/package/nestjs-custom-decorators-decorators

## Dependencies (2)

- [jwt-decode](https://npm.io/package/jwt-decode.md) ^2.2.0
- [@nestjs/common](https://npm.io/package/@nestjs/common.md) ^7.0.7

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-07-02

## README

# Nestjs-custom-decorators

A set of nestjs custom decorators.

## User decorator

A param decorator that fetches the `request.user` (could be added by a middleware or a guard) and add it to the params.

### Usage:

```ts
 @Get('/user')
 public getUser(@User() user: any): void {
   return user;
 }
```

## DecodeJWT

A param decorator that decodes the JSON web token added to the request by a middleware or a guard and add it to the params.

### Usage:

```ts
 @Get('/decode-jwt')
 public getDecodedJWT(@DecodeJWT() decodedJwt: any): void {
   return decodedJwt;
 }

```

---
_Source: https://npm.io/package/nestjs-custom-decorators-decorators · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
