hypersafe

0.0.1 • Public • Published

This is early POC of Hyperapp#2 vNodes escape

Escape

import { app } from 'hyperapp'
import { escape } from 'hypersafe'
import view from 'your/view/path'
 
app({
  // app initializetion
  view: escape(view, { /* escape options */ })
})

Options

Hypersafe allows you to disable any escaping rule, please take a look at 'src/tests.js' for rule names, example:

import { app } from 'hyperapp'
import { escape } from 'hypersafe'
import view from 'your/view/path'
 
app({
  // app initializetion
  view: escape(view, {
    // allows script tag
    disableScriptTag: false
  })
})

Readme

Keywords

Package Sidebar

Install

npm i hypersafe

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

1.87 kB

Total Files

4

Last publish

Collaborators

  • sergey.shpak