Validation, parsing and transforming for OSSPIM Content. Makes it easy to build React Commerce solutions with Product Information Management powered by OSSPIM that enable Fast Ecommerce API.
yarn add @osspim/content-transformer
import validator from '@osspim/content-transformer';
const isValid = validator.isModelValid(myModel);
const validationDetails = validator.isModelValidVerbose(myModel);
import toHTML from '@osspim/content-transformer/toHTML';
toHtml(contentModel);
import toText from '@osspim/content-transformer/toText';
toText(contentModel);