de-express
v3.0.1
Published
de-express is a simple way to use express with ES6 decorators.
Downloads
22
Maintainers
Readme
de-express
is a simple way to use express with ES6 decorators.
Install
$ 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
{
"presets": ["@babel/env"],
"plugins": [
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/proposal-class-properties", { "legacy": true }]
]
}
Usage
Visit the wiki.