Schema for the base-config plugin that normalizes config values before passing them to config.process(). Version 0.1.24. Part of the node-base ecosystem by Jon Schlinkert, this package validates and normalizes configuration objects according to predefined field definitions (e.g., asyncHelpers, disable, enable). It is typically used with base-config and base applications. The library is stable but receives infrequent updates. Key differentiator: it provides structured schema validation for base plugins, ensuring config data conforms to expected types and formats.
npm install base-config-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to create a base app, use base-config plugin, get schema, normalize config from package.json, and process it.
Ensure app.use(config()) is called before configSchema(app).
Consider using a generic schema validator like Joi or Yup instead.
Always pass a valid object, even if empty: schema.normalize({}).Use // @ts-ignore or write custom .d.ts file.
Run 'npm install base-config-schema' and ensure require path is correct.
Ensure base-config is installed and app.use(config()) is invoked before configSchema(app).
Add app.use(config()) before calling configSchema(app).