node < 4 support PR?
See original GitHub issueWould you accept a pr which utilizes webpack + babel to expose an es5 version?
Currently the line lower versions of node trip up on lib/index.js:139
var err = {
code: code,
message: '`' + commandStr + '` failed with code ' + code,
childProcess: cp,
toString() { // <------------- invalid syntax
return this.message;
}
};
You could keep the default require pointing to your current entry point, and have webpack output a file es5.js
which would allow people to require('child-process-promise/es5')
.
As for “why?” - my corporate environment runs build servers using node v0.12.14 and so our development environment should run on the same. Getting my co-workers using the command line is hard enough, but if they have to remember to mess with nvm in order to use the few CLI tools I create, that’s a hurdle they shouldn’t have to deal with.
I appreciate the module regardless!
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Node4 Support | Contact Us
Our expert team look forward to hearing from you. Contact the Node4 support team today & bring digital transformation to your business and...
Read more >Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. ... For information about supported releases, see the release schedule.
Read more >node/BUILDING.md at main · nodejs/node - GitHub
Node.js compilation/execution support depends on operating system, architecture, and libc version. The table below lists the support tier for each supported ...
Read more >Node.js Developer Tools - Visual Studio
Project templates, IntelliSense, npm integration, debugging, & more. ... Node.js Tools for Visual Studio includes support for discovering ...
Read more >Node.js and Raspberry Pi - W3Schools
In our examples we use a Raspberry Pi 3, but this tutorial should work for most versions. Hardware needed: Raspberry Pi computer; MicroSD...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Working on it now and will create a PR. I should have closed this issue when we resolved the direction anyway.
Interesting - yeah I thought there were non-browser use-cases for bundlers, but the more I google the more I find “how to bundle for the server environment” instead of “why”. I’ll use the conditional as you explained.
Thanks for mentioning lasso - hadn’t heard of it before.