D
D
Dark Hole2016-02-06 19:39:11
JavaScript
Dark Hole, 2016-02-06 19:39:11

Is it possible to write command line plugins in io.js and how to write it in general (on node.js)?

In essence, this is:
I want to write a command line plugin on io.js/node.js (for convenience), but although it is possible, I have not seen normal explanations anywhere on how to do this (i.e. what you need is to call the script without writing node/iojs in front of it)
Also, is it possible somehow to compile the io.js/node.js script into exe for example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
r1ch, 2016-02-06
@abyrkov

#!/bin/env node
Write at the beginning of the script file and call the script ./script.js, it may also require you to give permission to execute the script via chmod (method for linux, etc.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question