Skip to content

Function: isPackaged() ​

isPackaged(): boolean

Tell whether the application runs packed: bundled by lakutata package bundle, or inside a single executable built by lakutata package exe.

Returns ​

boolean

true when packed, false when it runs from its sources or its build (in development).

Example ​

typescript
import {isPackaged} from 'lakutata'

//The updates are only checked by the released builds
if (isPackaged()) console.log('Running the released build')

Released under the MIT License.