1.1.0 • Published 2 years ago

@hivary/engine-utils v1.1.0

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

Key Features

  • This repository aims to provide a set of utils for Hivary Engine. Repeated code will be moved here.
  • Also it can be applied for all nestjs projects that uses rest api.

How To Use

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Install dependencies
$ npm install @hivary/engine-utils
## Usage in Nestjs
import { Public, CurrentUser, Role  } from '@hivary/engine-utils';


@Public()
@Post('/your-path')
login(@Body() data: LoginDto) {
  return this.service.serviceFnc(data);
}

@Roles(['permitted-role'])
me(@CurrentUser() user: User) {
  return this.authService.me(user.email);
}

Note Project uses node version v21.6.0

Credits

This software uses the following open source packages:

Related

markdownify-web - Web version of Markdownify

Support

License

MIT


hivary.io  ·  GitHub TechtalentHub

1.1.0

2 years ago

1.0.0

2 years ago