No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

hace 3 años
1234567891011121314151617181920212223242526272829
  1. openurl – Node.js module for opening URLs
  2. =========================================
  3. openurl is a Node.js module for opening a URL via the operating system. This will usually trigger actions such as:
  4. - http URLs: open the default browser
  5. - mailto URLs: open the default email client
  6. - file URLs: open a window showing the directory (on OS X)
  7. Example interaction on the Node.js REPL:
  8. > require("openurl").open("http://rauschma.de")
  9. > require("openurl").open("mailto:john@example.com")
  10. You can generate emails as follows:
  11. require("openurl").mailto(["john@example.com", "jane@example.com"],
  12. { subject: "Hello!", body: "This is\nan automatically sent email!\n" });
  13. Install via npm:
  14. npm install openurl
  15. I’m not yet terribly familiar with implementing npm packages, so any feedback is welcome
  16. (especially experience reports on Windows and Linux, which I can’t test on).
  17. Related reading:
  18. - [Write your shell scripts in JavaScript, via Node.js](http://www.2ality.com/2011/12/nodejs-shell-scripting.html)