@is-pinoy-dev/validate
v1.0.1
Published
Validate your [is-pinoy.dev](https://is-pinoy.dev) subdomain file before submitting a PR.
Readme
@is-pinoy-dev/validate
Validate your is-pinoy.dev subdomain file before submitting a PR.
Usage
npx @is-pinoy-dev/validate ./subdomains/juan.jsonOn success:
✔ juan.json is validOn failure:
✖ Validation failed for juan.json:
- subdomain: String must contain at least 1 character(s)
- records: At least one record type requiredSubdomain File Format
{
"subdomain": "juan",
"owner": {
"github": "your-github-username",
"email": "[email protected]" // optional — for contact purposes only
},
"records": {
"CNAME": {
"value": "your-deployment-url"
}
}
}Supported record types: A, CNAME, TXT.
