Skip to content

Why do we have to promisify getos ??? #113

@FabriceSalvaire

Description

@FabriceSalvaire

Sorry, but I am trying to figure out why I have to "promisify" getos:

import _getOs from 'getos'
import util from 'node:util'
const getOs = util.promisify(_getOs)

Else I got an undefined value.
I suspect an async issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions