Skip to content

Drop support for versions below Node.js 6 #108

@Siilwyn

Description

@Siilwyn

Something for the future, I was looking into reducing my CLI tool size and noticed the semver package at the top when sorting by size.

When going with Node.js 6 and higher two dependencies, semver and nice-try are not needed anymore since they are used only once for feature detection here:

const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions