Comments (3)
This is how built-in child_process
works too:
console.log(process.argv.join(' '));
> require('child_process').execFileSync('node', ['t.js', undefined, null]).toString()
'/usr/local/bin/node /Users/sindresorhus/Downloads/t.js undefined null\n'
from execa.
The current behavior seems reasonable to me, AFAIK null
and undefined
are always treated that way:
> null + ''
'null'
> undefined + ''
'undefined'
> String(null)
'null'
> String(undefined)
'undefined'
from execa.
Ok. Thanks for the feedback 👍
from execa.
Related Issues (20)
- breaking changes not included in v9 release notes HOT 5
- Promise-based IPC HOT 2
- Remove `execaCommand()`
- Deprecating old `ipc` option HOT 1
- The `stdin` and `stdout` options must not target a file path string that is the same. HOT 2
- Export `Execa` and `ExecaScript` types. HOT 2
- v9.1.0 possible bug HOT 4
- template syntax HOT 2
- Select specific IPC messages
- Avoid race conditions with IPC
- backup-file-in-package HOT 2
- Cannot set properties of null (setting 'peer') HOT 1
- 9.2.0 release post HOT 2
- execa with env option not working HOT 5
- Do not disconnect IPC on `error` event
- Not able to inject environment variables HOT 3
- Node.js engine version in package.json is not up-to-date HOT 6
- Document CLI utilities
- Subprocess is considered as failed exit when using `process.kill` on windows only HOT 6
- Graceful termination HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from execa.