An open API service indexing awesome lists of open source software.

https://github.com/devsnek/to_cell


https://github.com/devsnek/to_cell

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

### convert structures to [cell](https://github.com/intercellular/cell)

```js
> const to_cell = require('to_cell')
undefined
> to_cell.jsx('

')
[ { '$type': 'h1', '$cell': true } ]
> to_cell.html('

')
[ { '$type': 'h1', '$cell': true } ]
> to_cell.jsx('

{}}>

')
[ { '$type': 'h1', '$cell': true, onclick: [Function] } ]
> to_cell.jsx('

{}}>hi

')
[ { '$type': 'h1',
'$cell': true,
onclick: [Function],
'$text': 'hi' } ]
> to_cell.html('

hi

')
[ { '$type': 'h1', '$cell': true, '$text': 'hi' } ]
```