Use the bleeding edge.
import { open } from 'https://github.com/hashrock/deno-opn/raw/master/mod.ts'
Use a specific Release tag.
import { open } from 'https://github.com/hashrock/deno-opn/raw/<Version Tag>/mod.ts'
v2.0.0
import { open } from 'https://github.com/hashrock/deno-opn/raw/v2.0.0/mod.ts'
v1.1.1(legacy)
import { opn } from 'https://github.com/hashrock/deno-opn/raw/v1.1.1/opn.ts'
Open a file with the default image viewer.
await open('unicorn.png');
Open a URL in the default browser.
await open('http://sindresorhus.com');
Open the target with a specific program.
await open('http://sindresorhus.com',{
with: [ 'firefox' ]
});
Supply the program with arguments.
await open('http://sindresorhus.com',{
with: [ 'chrome' , '--incognito' ]
});