New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hyperoop

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperoop

OOP-style web micro-framework over hyperapp

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Build Status codecov npm GitHub top language npm Known Vulnerabilities Join the chat at https://gitter.im/hyper-oop

Patreon

Donate using Liberapay

hyperoop

Hyperoop is OOP-style SPA micro-framework.

Quick start

git clone https://github.com/HyperOOP/starter myapp
cd myapp
npm i
npm start

Install

npm i --save hyperoop

Examples

See examples.

More advanced example is source code of our site hyperoop.github.io.

Run example

To run todo-hist example:

git clone https://github.com/HyperOOP/hyperoop-examples
cd hyperoop-examples/todo-hist
npm i && npm run serve

Then open localhost:10001 in browser. Or simply try it online

Example counter

TypeScript code (try online):

import * as ui from 'hyperoop';

class Counter extends ui.Actions<{count: number}> {}

const counter = new Counter({ count: 0 });

const view = () => (
<div>
    <h1>{counter.State.count}</h1>
    <button onclick={() => counter.State.count--}>-</button>
    <button onclick={() => counter.State.count++}>+</button>
</div>
);

ui.init(document.body, view, counter);

Router

Use our official router

Keywords

hyperapp

FAQs

Package last updated on 16 May 2019

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