Skip to content

Toolkit of handy utility functions for dealing with Portable Text

License

Notifications You must be signed in to change notification settings

aorsten/toolkit

 
 

Repository files navigation

@portabletext/toolkit

npm versionnpm bundle sizeBuild Status

Javascript toolkit of handy utility functions for dealing with Portable Text.

Particularly useful for building rendering libraries for Portable Text that outputs HTML.

Installation

npm install --save @portabletext/toolkit

Documentation

See https://portabletext.github.io/toolkit/

Usage

import {toPlainText} from '@portabletext/toolkit'

console.log(toPlainText(myPortableTextBlocks))

License

MIT © Sanity.io

About

Toolkit of handy utility functions for dealing with Portable Text

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 65.7%
  • JavaScript 34.3%