Socket
Socket
Sign inDemoInstall

hyperscript

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperscript - npm Package Compare versions

Comparing version 1.4.7 to 2.0.0

9

index.js
var split = require('browser-split')
var ClassList = require('class-list')
require('html-element')
var htmlElement = require('html-element');
var document = htmlElement.document;
var Text = htmlElement.Text;
function context () {

@@ -138,6 +141,2 @@

function isText (el) {
return el && el.nodeName === '#text' && el.nodeType == 3
}
function forEach (arr, fn) {

@@ -144,0 +143,0 @@ if (arr.forEach) return arr.forEach(fn)

{
"name": "hyperscript",
"version": "1.4.7",
"version": "2.0.0",
"homepage": "https://github.com/dominictarr/hyperscript",

@@ -18,5 +18,5 @@ "repository": {

"dependencies": {
"browser-split": "0.0.0",
"class-list": "~0.1.0",
"browser-split": "0.0.0",
"html-element": "~1.3.0"
"html-element": "^2.0.0"
},

@@ -23,0 +23,0 @@ "browser": {

@@ -103,3 +103,3 @@ # HyperScript

var h = require('hyperscript')
h('h1.fun', {style: 'font-family: Comic Sans MS'}}, 'Happy Birthday!')
h('h1.fun', {style: 'font-family: Comic Sans MS'}, 'Happy Birthday!')
```

@@ -168,8 +168,10 @@

```
## Ecosystem
## Tools
* [html2hscript](https://github.com/twilson63/html2hscript) - Parse HTML into hyperscript
* [dom2hscript](https://github.com/AkeemMcLennon/dom2hscript) - Frontend library for parsing HTML into hyperscript using the browser's built in parser.
* [html2hscript.herokuapp.com](http://html2hscript.herokuapp.com/) - Online Tool that converts html snippets to hyperscript
* [html2hyperscript](https://github.com/unframework/html2hyperscript) - Original commandline utility to convert legacy HTML markup into hyperscript
* [hyperscript-helpers](https://github.com/ohanhi/hyperscript-helpers) - write `div(h1('hello')` instead of `h('div', h('h1', 'hello'))`
* [react-hyperscript](https://github.com/mlmorg/react-hyperscript) - use hyperscript with React.

@@ -179,1 +181,4 @@ ## License

MIT

@@ -0,1 +1,2 @@

global.document = require('html-element').document;

@@ -2,0 +3,0 @@ var test = require('tape')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc