out-url
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

out-url

Light Weight, Cross platform Node.js Utility to open urls in browser with zero dependencies

NPM

CodeQL

Supported platforms

  • Android
  • Windows
  • MacOS
  • Linux

Example

// Plain example
const { open } = require('out-url');
open('https://github.com/azhar22k');
//or
require('out-url').open('https://github.com/azhar22k');
// With error handling
const { open } = require('out-url');
open('https://github.com/azhar22k')
  .then(res => console.log('RES', res)) // Resolves with Done!
  .catch(err => console.log('ERR', err));
// Using async/await
const { open } = require('out-url');

const foo = async () {
  await open('https://github.com/azhar22k');
}

Package Sidebar

Install

npm i out-url

Weekly Downloads

190

Version

1.2.2

License

MIT

Unpacked Size

3.74 kB

Total Files

6

Last publish

Collaborators

  • itz-azhar