coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.8k stars 356 forks source link

How to enable ES6 #183

Closed eranabir closed 7 years ago

eranabir commented 7 years ago

i am enable to install and start the service but my node file is writing in ES6

there is any option to run it with ES6 ?

thank you

coreybutler commented 7 years ago

This doesn't actually have anything to do with node-windows. As long as you're running a version of Node that supports ES6, then it should just work.

eranabir commented 7 years ago

its not very currecr because to run node js with es6 i am using this command : babel-node --preset babel-preset-es2015 example.js so i cannot use it with the node-windows

coreybutler commented 7 years ago

Babel is for frontend code.... there is no need to use it on the backend. The babel-noed --preset babel-preset-es2015 part is completely unnecessary.

You may be better off posting a question on StackOverflow. Remember to describe what you're trying to do and provide code examples.