Documentation for Simbo's Packages
    Preparing search index...

    Options for the findUpPackage function.

    interface Options {
        matchFn?: MatchFn;
        normalize?: boolean | NormalizeOptions;
        workingDir?: string;
    }
    Index

    Properties

    matchFn?: MatchFn

    A function that takes a path and a package.json object and returns a boolean indicating whether the package.json matches the criteria. The default function returns true if both the path and package.json are truthy.

    normalize?: boolean | NormalizeOptions

    Whether to normalize the package.json file using npm's normalize-package-data. Defaults to false. Can be set to true or an object with options for the normalize function. Default options are strict:false and warn:console.warn.

    workingDir?: string

    The directory to start searching from. If not provided, the current working directory will be used.