2025-03-24 22:56:10 +01:00

18 lines
397 B
JavaScript

import { publint as _publint } from '../src/index.js'
/**
* @type {import('../index.d.ts').publint}
*/
export function publint(options) {
if (!options?.vfs) {
throw new Error('The vfs option is required in the browser')
}
return _publint({
pkgDir: options.pkgDir ?? '/',
vfs: options.vfs,
level: options.level ?? 'suggestion',
strict: options?.strict ?? false
})
}