@crystallize/content-transformer

9.2.0 • Public • Published

alt text

Crystallize Content Transformer

Validation, parsing and transforming for Crystallize Content. Makes it easy to build React Commerce solutions with Product Information Management powered by Crystallize that enable Fast Ecommerce API.

Install

yarn add @crystallize/content-transformer

Validate

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

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

toHTML

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

toHtml(contentModel);

toText

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

toText(contentModel);

React

See @crystallize/react-content-transformer

Readme

Keywords

none

Package Sidebar

Install

npm i @crystallize/content-transformer

Weekly Downloads

306

Version

9.2.0

License

MIT

Unpacked Size

33.3 kB

Total Files

22

Last publish

Collaborators

  • crystallize-admin