Recent Changes

Updates since 1970-01-01 00:00 UTC

(for 2021-03-07_A_directory_name_as_a_command-line_parameter_for_Node.js only)

1 | 3 | 7 | 30 | 90 days
List latest change per page only List only major changes
List later changes RSS RSS with pages RSS with pages and diff

2021-03-07

  • 07:57 UTC (new) 2021-03-07 A directory name as a command-line parameter for Node.js . . . . mbork Some time ago I accidentally discovered a neat feature of Node.js, which seems undocumented (at least I could not find anything about it in the docs). If you have some npm project in a directory, say /tmp/some-npm-project, and it has the main property in package.json set to some Node.js script, say bin.js, then saying just node /tmp/some-npm-project runs /tmp/some-npm-project/bin.js. It turns out to be quite useful if you have a directory full of various Node.js CLI utilities, each occupying its own directory, with its own package.json, especially considering shell autocompletion. And that’s it for today!

More...

Filters