🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

hyperscript.org

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
_

hyperscript.org

a small scripting language for the web

0.0.1-alpha4
80

Supply Chain Security

100

Vulnerability

72

Quality

77

Maintenance

100

License

Version published
Weekly downloads
2.5K
-15.42%
Maintainers
1
Weekly downloads
 
Created
Issues
54

//_hyperscript

the underscore is silent

introduction

_hyperscript is a small, open scripting language inspired by hypertalk

it is a companion project of https://htmx.org

quickstart


<script src="https://unpkg.com/hyperscript.org@0.0.1-alpha"></script>
<script>
_hyperscript.start();
</script>

<button _="on click toggle .clicked">
  Toggle the "clicked" class on me
</button>


<div hs="on mouseOver toggle mouse-over on #foo">
</div>

<div data-hs="on click call aJavascriptFunction() then
              wait 10s then 
              call anotherJavascriptFunction()">
           Do some stuff
</div>

website & docs

contributing

  • please write code, including tests, in ES5 for IE 11 compatibility
  • please include test cases in /test and docs in /www
  • development pull requests should be against the dev branch, docs fixes can be made directly against master

FAQs

Package last updated on 30 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts