Doesn't print anything when executed in node #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/printj#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm on node version 6.11. I'm just using the basic example
PRINTJ.sprintf("Hello %s", SheetJS)
;I save this code in a file and run
node <filename>
. Doesn't print anything.console.log
however still prints somethingsprintf
andvsprintf
don't actually print anything to console. They just return the resulting string. It's explained in the JS Interface section of the README:The documentation shows examples from a REPL session, where the REPL evaluates and prints out the result. To run a REPL, just run
node
:Running node with
-pe
arguments evaluates and prints the result:Running from a file, you need to explicitly console.log.
The documentation is somewhat confusing. It has the
>
prompt to indicate that the commands were run in the REPL but it's not explained anywhere. If you have any thoughts for improving the docs, we'd love to improve them!