@portabletext/toolkit
Version:
Toolkit of handy utility functions for dealing with Portable Text
30 lines (17 loc) • 1.05 kB
Markdown
# @portabletext/toolkit
[](https://www.npmjs.com/package/@portabletext/toolkit)[](https://bundlephobia.com/result?p=@portabletext/toolkit)[](https://github.com/portabletext/toolkit/actions?query=workflow%3Atest)
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/](https://portabletext.github.io/toolkit/)
## Usage
```ts
import {toPlainText} from '@portabletext/toolkit'
console.log(toPlainText(myPortableTextBlocks))
```
## License
MIT © [Sanity.io](https://www.sanity.io/)