Skip to content

Files

Latest commit

58c7906 · Feb 16, 2022

History

History
41 lines (26 loc) · 1.12 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.12 KB

alt text

OSSPIM Content Transformer

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.

Install

yarn add @osspim/content-transformer

Validate

import validator from '@osspim/content-transformer';

const isValid = validator.isModelValid(myModel);
const validationDetails = validator.isModelValidVerbose(myModel);

toHTML

import toHTML from '@osspim/content-transformer/toHTML';

toHtml(contentModel);

toText

import toText from '@osspim/content-transformer/toText';

toText(contentModel);

React

See @osspim/react-content-transformer

content-transformer