express-restful-es6 | express-restful-es6 is a node | REST library
kandi X-RAY | express-restful-es6 Summary
kandi X-RAY | express-restful-es6 Summary
express-restful-es6 is a node.js express library which handles HTTP requests and makes much easier creating Restful APIs. It uses @Rest('/path') annotation put on es6 class, which indicates that annotated class is Express router.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of express-restful-es6
express-restful-es6 Key Features
express-restful-es6 Examples and Code Snippets
Community Discussions
Trending Discussions on express-restful-es6
QUESTION
I am trying to migrate old nodejs (version 6.x) rest service project to latest nodejs (version 9.6.1) rest service project and want to follow ECMAScript 6 specification without any transplier.
The current project uses express, body-parser, moment, multer, cors, ethereumjs-tx, secp256k1, requirejs and some other nodejs modules, so my question is, does all these different modules as well as nodejs support ECMAScript 6 specification natively.
In internet I saw lots of solutions using bable transplier but I do not want to follow that approach.
Again I found https://github.com/mench/express-restful-es6 a ECMAScript 6 implementation of express but again it does not work. It failed on default import and use of decoration with @.
So is the ECMAScript 6 support for node.js and it modules are already implemented or should I wait for some time.
EDITI agree the decorator patter support is not in ECMAScript 6, but import and export are also not working, I tried to run the following code ...
...ANSWER
Answered 2018-Mar-02 at 08:31ES6 is fully backward compatible. So, libraries and SDKs don't have to do anything additional to be ES6 compliant.
Of course, they may (or may not) choose to use ES-Next features, but it is common practice that any libraries using features not supported in the versions of the node they target, transpile their source as a part of their publishing process so consumers don't have to bother with transpiling of libraries.
If you ensure that your application uses the ES6 features supported by node you don't have to use a transpiler.
Again I found https://github.com/mench/express-restful-es6 a ECMAScript 6 implementation of express but again it does not work. It failed on default import and use of decoration with @.
Their examples use the decorator syntax currently not supported by Node.
However if you want to avoid transpilation you can use the exposed functions as plain functions instead of decorators:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install express-restful-es6
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page