SDK catalog / Core
Core
alpha 0.3.0-alpha.6
Published preview for @wf/core@0.3.0-alpha.6. Follow the registry guide and review compatibility before installing.
Join the alpha Sign in with Google, then add your name. We review alpha access requests.
import { readPluginConfig } from '@wf/core'
import { fileURLToPath } from 'node:url'
const settings = readPluginConfig(fileURLToPath(new URL('./settings.yaml', import.meta.url)), {
type: 'object', required: ['name'], properties: { name: { type: 'string' }, cache: { type: 'path' } },
})
console.log(settings.name)