We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If we have a script which console.log's 66k json file it will be split with newline at 65536 byte even in pm2-docker --raw mode.
pm2-docker --raw
pm2-docker --raw print_66k_JSON.js should only output one line with JSON.
pm2-docker --raw print_66k_JSON.js
Outputs 2 lines split at 65356 bytes.
Create print_66k_JSON.js:
print_66k_JSON.js
const fs = require('fs') console.log(fs.readFileSync('./66k.txt', 'utf8')) setTimeout(() => {}, 1000 * 60 * 60 * 30) // to avoid auto-restart by pm2
Create ./66k.txt file with 66 text in it. Run pm2-docker --raw print_66k_JSON.js
./66k.txt
Observe line break at 65356 byte
OS : Tried MacOS 10.12.2 and official docker image `node:7.2.0` node.js : 6.3.0 or 7.2.0 (tried both) PM2 : 2.2.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If we have a script which console.log's 66k json file it will be split with newline at 65536 byte even in
pm2-docker --raw
mode.Expected behaviour
pm2-docker --raw print_66k_JSON.js
should only output one line with JSON.
Actual behaviour
Outputs 2 lines split at 65356 bytes.
Steps to reproduce
Create
print_66k_JSON.js
:Create
./66k.txt
file with 66 text in it.Run
pm2-docker --raw print_66k_JSON.js
Observe line break at 65356 byte
Software versions used
The text was updated successfully, but these errors were encountered: