How to use openurl - 10 common examples

To help you get started, we’ve selected a few openurl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github abecms / abecms / src / server / app.js View on Github external
server.listen(port, function() {
    console.log(clc.green(`\nserver running at https://localhost:${port}/`))
    if (process.env.OPENURL) openurl.open(`https://localhost:${port}/abe/`)
  })
} else {
github CartoDB / cartodb-nodejs / bin / import.bin.js View on Github external
importing.done(function(table_name) {
  console.log('Table ' + table_name + ' has been created!');
  if (options.openMap || options.openTable) {
    var url = 'https://{{user}}.carto.com/tables/{{table_name}}';
    if (options.openMap) url += '/map';
    openurl.open(Mustache.render(url, {
      user: options.user,
      table_name: table_name,
    }));
  }
});
github rate-engineering / rate3-monorepo / packages / wallet / Anchor.js View on Github external
handleInteractiveResponse(response) {
    try {
      openurl.open(response.url);
    } catch (error) {
      return error;
    }
    return true;
  }
}
github thmsbfft / oryoki / src / js / main / _main.js View on Github external
click: function() {
						var osVersion = require('os').release();
						var oryokiVersion = Oryoki.versions.oryoki;
						require("openurl").open("mailto:write@oryoki.io?subject=Ōryōki ⭕️ Feedback&body=\n\nŌryōki: v."+oryokiVersion+"\nOperating System: Darwin v."+osVersion);
					}
				}
github Vmlweb / MEAN-Angular / tasks / client / build.js View on Github external
let command
									switch(process.platform) {
								    case 'darwin':
							        command = 'open'
							        break
								    case 'win32':
							        command = 'explorer.exe'
							        break
								    case 'linux':
							        command = 'xdg-open'
							        break
									}

									//Open default browser with dev server
									if (command && commandExists(command)){
										OpenURL.open('http://' + config.http.hostname + ':' + config.http.port.dev)
									}
								}
							})
github 71104 / oogl.js / demos.js View on Github external
server.listen(process.env.PORT || 80, function () {
	require('openurl').open('http://localhost:' + server.address().port + '/');
});
github thmsbfft / oryoki / main.js View on Github external
click: function() {
						var osVersion = require('os').release();
						var oryokiVersion = Oryoki.versions.oryoki;
						require("openurl").open("mailto:write@oryoki.io?subject=Ōryōki ⭕️ Feedback&body=\n\nŌryōki: v."+oryokiVersion+"\nOperating System: Darwin v."+osVersion);
					}
				}
github FPGAwars / icestudio / app / scripts / graphics / joint.shapes.js View on Github external
element.onclick = function (event) {
        event.preventDefault();
        openurl.open(element.href);
      };
    });
github OokTech / TW5-SingleExecutable / tiddlywiki.js View on Github external
setTimeout(function () {
      if ($tw.httpServerPort) {
        require("openurl").open("http://127.0.0.1:" + $tw.httpServerPort);
      } else {
        openBrowser();
      }
    }, 100);
  }

openurl

Open a URL via the operating system (http: in default browser, mailto: in mail client etc.

MIT
Latest version published 9 years ago

Package Health Score

65 / 100
Full package analysis

Popular openurl functions