fynjs API
    Preparing search index...

    Class PackageRef

    Reference to a package by id, path, or name.

    Supports RegExp or minimatch (for path)

    Index
    • Parameters

      • ref: string

      Returns PackageRef

    mm?: Minimatch
    regex?: RegExp

    If value reference is a regexp (starts with / and has a closing /), then create a RegExp from it.

    type: PackageRefType

    value's reference type, id, path, or name

    value: string

    value that reference the package

    • Parse a package ref in string form

      The reference type can be a package id, name, or path.

      • user can specify type with id:, name: or path:
      • if no type but there's a @ in the middle then it's id else default to name

      Parameters

      • ref: string

        package string reference

      Returns void