@ublacklist/serpinfo
v2.0.0
Published
The SERPINFO format definition, parser, and schemas for uBlacklist.
Readme
@ublacklist/serpinfo
The SERPINFO format definition, parser, and schemas for uBlacklist.
Installation
npm install @ublacklist/serpinfoUsage
import { parse } from "@ublacklist/serpinfo";
const result = parse(`
name: Example
pages:
- name: example
matches:
- "*://*.example.com/*"
results: []
`);
if (result.success) {
console.log(result.data.name); // "Example"
} else {
console.error(result.error);
}Documentation
See the SERPINFO specification for the full format.
