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

hyperscript.org

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

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.9.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.8K
decreased by-20.47%
Maintainers
0
Weekly downloads
 
Created
Source

//_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.9.13"></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 include test cases in /test and docs in /www
    • you can run the test suite by viewing test/index.html in a browser.
  • development pull requests should be against the dev branch, docs fixes can be made directly against master
  • you can build _hyperscript as shown: npm run dist. building is not necessary during development to run tests.

Keywords

FAQs

Package last updated on 20 Oct 2024

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

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