Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 23, 2024 via pnpm

@humanwhocodes/config-array 0.11.13

Glob-based configuration matching.
Package summary
Share
0
issues
4
licenses
5
MIT
1
Apache-2.0
1
BSD-3-Clause
1
ISC
Package created
25 Nov 2019
Version published
20 Oct 2023
Maintainers
1
Total deps
8
Direct deps
3
License
Apache-2.0

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
balanced-match@1.0.2
brace-expansion@1.1.11
concat-map@0.0.1
debug@4.3.4
ms@2.1.2

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
@humanwhocodes/config-array@0.11.13

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
@humanwhocodes/object-schema@2.0.3

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
minimatch@3.1.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of @humanwhocodes/config-array 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@humanwhocodes/object-schema2.0.322.71 kBBSD-3-Clause
prod
debug4.3.412.94 kBMIT
prod
minimatch3.1.211.66 kBISC
prod

Visualizations

Frequently Asked Questions

What does @humanwhocodes/config-array do?

The "@humanwhocodes/config-array" is a JavaScript package that manages configurations based on glob-pattern matching of filenames. Created by Nicholas C. Zakas, this package helps streamline the process of configuration that may get complicated over time. It is capable of representing all configurations, including overrides, by a single array where each item is a config object. Glob patterns within files and ignores properties from each config object are used to calculate a configuration for a given file.

How do you use @humanwhocodes/config-array?

To use the "@humanwhocodes/config-array", first, you need to install the package through either npm or Yarn:

npm install @humanwhocodes/config-array --save

or

yarn add @humanwhocodes/config-array

Then, you can import the ConfigArray constructor and create a new instance by passing in an array of configs and an options object:

import { ConfigArray } from "@humanwhocodes/config-array";

const configFilename = path.resolve(process.cwd(), "my.config.js");
const { default: rawConfigs } = await import(configFilename);

const configs = new ConfigArray(rawConfigs, {  
    basePath: process.cwd(),
    schema: mySchema
});

To normalize your configuration array before use, call the normalize() method and pass in a context object:

await configs.normalize({
    name: "MyApp"
});

You can use the getConfig() method on the normalized array and pass on the filename to get a config for:

const fileConfig = configs.getConfig(path.resolve(process.cwd(), "package.json"));

Where are the @humanwhocodes/config-array docs?

The "@humanwhocodes/config-array" doesn't have separate documentation. All information on how to use this package can be found directly in the readme file on its GitHub project page here. This includes examples of different ways for specifying schemas, determining ignored paths and employing caching mechanisms, etc., are all comprehensively contained in the readme.