@metasearch/feed-validator
v0.1.5
Published
Hotel feed validation CLI and Node.js SDK for Google Hotel Center, Wego, trivago, Meta, Criteo and canonical hotel master data.
Maintainers
Readme
@metasearch/feed-validator
Hotel feed validation CLI and Node.js SDK for Google Hotel Center, Wego, trivago, Meta, Criteo and canonical hotel master data.
CLI
npx @metasearch/feed-validator validate hotels.csv --target google-hotel-centerPublic URL:
npx @metasearch/feed-validator validate https://example.com/hotels.xml --target wegostdin:
curl -s https://example.com/hotels.csv | npx @metasearch/feed-validator validate - --target trivagoCompare targets:
npx @metasearch/feed-validator compare hotels.csv --targets google-hotel-center,wego,trivagoMachine-readable output:
npx @metasearch/feed-validator validate hotels.csv --target google-hotel-center --output jsonCI gate:
npx @metasearch/feed-validator validate hotels.csv --target google-hotel-center --fail-on errorExit codes: 0 pass, 1 validation threshold failed, 2 CLI/input/parse error.
Node.js SDK
import {validateFeed, normalizeHotelRecords, comparePlatformRequirements} from "@metasearch/feed-validator";
const result=validateFeed("google_hotel_center",csv);Node input loader:
import {loadFeedInput, validateFeed} from "@metasearch/feed-validator/node";
const content=await loadFeedInput("https://example.com/hotels.csv");
const result=validateFeed("wego",content);Evidence levels
Google Hotel Center, Wego and trivago validators use published platform requirements where documented. Meta and Criteo are readiness/mapping checks and are not official certification.
Website: https://metasearch.com.tr/en/tools/hotel-feed-validator
