Skip to content

naverwhale/installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@naverwhale/installer

Naver Whale installler for web application.

Installation

npm i @naverwhale/installer

Usage

import installer from '@naverwhale/installer';

// Install the Whale browser for the current environment.
installer.install();

// Get installation url for the current environment.
installer.getInstallURL();

API

install

Install the Whale browser. You can specify the environment to install with parameter, if not, it will be set as the current environment.

// current environment.
installer.install();
// or window
installer.install('win');

getInstallURL

Returns the Whale browser install url. You can specify the environment to install with parameter, if not, it will be set as the current environment.

// current environment.
installer.getInstallURL();
// or window
installer.getInstallURL('win');

Types

interface Installer {
    install: (platform?: Platform) => void;
    getInstallURL: (platform?: Platform) => string;
}

type Platform =
    | 'win'
    | 'win_32'
    | 'win_64'
    | 'win_arm'
    | 'win_beta'
    | 'mac'
    | 'mac_arm'
    | 'linux'
    | 'iphone'
    | 'ipad'
    | 'android';