1.0.1 • Published 4 years ago
openurl-android v1.0.1
openurl-android – Node.js module for opening URLs Android Support
openurl-android is a Node.js module for opening a URL via the operating system Android. This will usually trigger actions such as:
- http URLs: open the default browser
- mailto URLs: open the default email client
- file URLs: open a window showing the directory (on OS X)
Example interaction on the Node.js REPL:
> require("openurl-android").open("http://rauschma.de")
> require("openurl-android").open("mailto:john@example.com")
You can generate emails as follows:
require("openurl").mailto(["john@example.com", "jane@example.com"],
{ subject: "Hello!", body: "This is\nan automatically sent email!\n" });
Install via npm:
npm install openurl-android
NOTE: THIS PACKAGE IS FROM OPENURL MODULE. MODIFICATED BY YONLE FOR ANDROID SUPPORT
Do it at Bash:
lt -p 8080
I’m not yet terribly familiar with implementing npm packages, so any feedback is welcome (especially experience reports on Windows and Linux, which I can’t test on).
Related reading:
Credit:
Special thanks to Axel Rauschmayer for the npm module. Android(Termux) Support is made by Yonle.