@imdbsd/slate-string-deserialize
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Slate String Deserialize

Deserialiaze plain string to slate value. Currently target slate > 0.5x version.

Example

more example can be found on __tests__ directory

import deserialize from 'slate-string-deserialize'

deserialize('hello world')
/*
[{type: 'paragraph', children: [{text: 'hello world'}]}]
*/

Readme

Keywords

none

Package Sidebar

Install

npm i @imdbsd/slate-string-deserialize

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

11.5 kB

Total Files

9

Last publish

Collaborators

  • imdbsd