Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/htdangkhoa/de-express
:fire: Decorators for express framework.
https://github.com/htdangkhoa/de-express
decorators es6 express expressjs nodejs
Last synced: 9 days ago
JSON representation
:fire: Decorators for express framework.
- Host: GitHub
- URL: https://github.com/htdangkhoa/de-express
- Owner: htdangkhoa
- License: gpl-3.0
- Created: 2019-12-28T16:39:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:02:18.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T05:43:14.197Z (21 days ago)
- Topics: decorators, es6, express, expressjs, nodejs
- Language: JavaScript
- Homepage: https://github.com/htdangkhoa/de-express/wiki
- Size: 1.39 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
de-express
---
> `de-express` is a simple way to use [express](http://expressjs.com/) with ES6 decorators.
## Install
```bash
$ yarn add -D @babel/cli @babel/core @babel/node @babel/preset-env @babel/plugin-transform-runtime
# npm install --save-dev @babel/cli @babel/core @babel/node @babel/preset-env @babel/plugin-transform-runtime$ yarn add -D @babel/plugin-proposal-decorators @babel/plugin-proposal-class-properties
# or npm install --save-dev @babel/plugin-proposal-decorators @babel/plugin-proposal-class-properties$ yarn add de-express
# or npm install de-express
```## .babelrc
```json
{
"presets": ["@babel/env"],
"plugins": [
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/proposal-class-properties", { "legacy": true }]
]
}
```## Usage
Visit the [wiki](https://github.com/htdangkhoa/de-express/wiki).