Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyperscript.org

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperscript.org - npm Package Compare versions

Comparing version 0.0.1-alpha0 to 0.0.1-alpha1

dist/_hyperscript.js

14

package.json

@@ -8,6 +8,6 @@ {

],
"version": "0.0.1-alpha0",
"version": "0.0.1-alpha1",
"homepage": "https://hyperscript.org/",
"bugs": {
"url": "https://github.com/bigskysoftware/hyperscript/issues"
"url": "https://github.com/bigskysoftware/_hyperscript/issues"
},

@@ -20,13 +20,13 @@ "license": "BSD 2-Clause",

],
"main": "",
"unpkg": "dist/hyperscript.min.js",
"main": "dist/_hyperscript.min.js",
"unpkg": "dist/_hyperscript.min.js",
"scripts": {
"test": "mocha-chrome test/index.html",
"dist": "cp -r src/* dist/ && npm run-script uglify && gzip -k -f > dist/hyperscript.min.js.gz && exit",
"dist": "cp -r src/* dist/ && npm run-script uglify && gzip -k -f dist/_hyperscript.min.js > dist/_hyperscript.min.js.gz && exit",
"www": "node scripts/www.js",
"uglify": "uglifyjs -m eval -o dist/hyperscript.min.js dist/hyperscript.js"
"uglify": "uglifyjs -m eval -o dist/_hyperscript.min.js dist/_hyperscript.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bigskysoftware/hyperscript.git"
"url": "git+https://github.com/bigskysoftware/_hyperscript.git"
},

@@ -33,0 +33,0 @@ "devDependencies": {

@@ -1,14 +0,21 @@

# `///_hyperscript`
[![//_hyperscript](https://hyperscript.org/img/light_logo.png "the underscore is silent")](https://hyperscript.org)
*the underscore is silent*
## introduction
hypescript is a small web scripting language based [applescript](https://en.wikipedia.org/wiki/Applescript) and
[hypertalk](https://en.wikipedia.org/wiki/HyperTalk)
`_hyperscript` is a small, open scripting language inspired by [hypertalk](https://hypercard.org/HyperTalk%20Reference%202.4.pdf)
it is a companion project of <https://htmx.org>
## sample
## quickstart
```html
<button hscript="toggle clicked">
<script src="https://unpkg.com/hyperscript.org@0.0.1-alpha0/dist/hyperscript.min.js"></script>
<script>
_hyperscript.start();
</script>
<button _="on click toggle .clicked">
Toggle the "clicked" class on me

@@ -18,6 +25,6 @@ </button>

<div hscript="on mouseOver toggle mouse-over on #foo">
<div hs="on mouseOver toggle mouse-over on #foo">
</div>
<div hscript="on click call aJavascriptFunction() then
<div data-hs="on click call aJavascriptFunction() then
wait 10s then

@@ -27,2 +34,13 @@ call anotherJavascriptFunction()">

</div>
```
```
## website & docs
* <https://hyperscript.org>
* <https://hyperscript.org/docs>
## contributing
* please write code, including tests, in ES5 for [IE 11 compatibility](https://stackoverflow.com/questions/39902809/support-for-es6-in-internet-explorer-11)
* please include test cases in [`/test`](https://github.com/bigskysoftware/_hyperscript/tree/dev/test) and docs in [`/www`](https://github.com/bigskysoftware/_hyperscript/tree/dev/www)
* development pull requests should be against the `dev` branch, docs fixes can be made directly against `master`
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