Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

@crystallize/content-transformer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crystallize/content-transformer

Validation and parsing for Crystallize rich text content

latest
Source
npmnpm
Version
9.2.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 28 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts