Neolithic Populous Metropolis

    balena-hup-action-utils
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.3 • Public • Published

    balena-hup-action-utils

    npm version dependencies Build Status

    Balena hostOS update validations & utilities

    Role

    The intention of this module is to provide some low level common definitions and utilities for host OS updates.

    THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY.

    Unless you know what you're doing, use the balena SDK instead.

    Installation

    Install balena-hup-action-utils by running:

    $ npm install --save balena-hup-action-utils

    Documentation

    The module returns a class that you use to get an instance of the hup action helper.

    Example

    import { HUPActionHelper } from 'balena-hup-action-utils';
    const hupActionHelper = new HUPActionHelper();
    hupActionHelper.getHUPActionType('raspberrypi3', '2.0.0+rev1.prod', '2.2.0+rev1.prod');
    hupActionHelper.isSupportedOsUpdate('raspberrypi3', '2.0.0+rev1.prod', '2.2.0+rev1.prod');

    Support

    If you're having any problem, please raise an issue on GitHub and the balena team will be happy to help.

    Tests

    Run the test suite by doing:

    $ npm test

    Contribute

    Before submitting a PR, please make sure that you include tests, and that tslint runs without any warning:

    $ npm run lint

    License

    The project is licensed under the Apache 2.0 license.

    Install

    npm i balena-hup-action-utils

    DownloadsWeekly Downloads

    1,694

    Version

    4.0.3

    License

    Apache-2.0

    Unpacked Size

    44.2 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar