New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

doz

Package Overview
Dependencies
Maintainers
1
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doz

A JavaScript framework for building UI, almost like writing in VanillaJS.

  • 0.0.24
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
162
increased by2.53%
Maintainers
1
Weekly downloads
 
Created
Source






A JavaScript framework for building UI, almost like writing in VanillaJS.



Documentation | Demo

Tiny size: 7KB (gzip)

Why another framework?

In the web there are many frameworks that do all the same things. But a lot of them are complex, we need to know a lot of directives and they make confusion for example with the context of "this", some introduce other syntaxes like JSX. All you need is HTML, CSS and Doz.

Installation

npm install --save doz

Example

<div id="app"></div>
Component definition
Doz.component('button-counter', {
    props: {
        counter: 0
    },
    template: function() {
        return `
            <div>
                <button onclick="this.click()">${this.props.title}</button>
                <span class="counter">${this.props.counter}</span>
            </div>
        `
    },
    click: function() {
        this.props.counter += 1;
    }
});
Make an app with the component defined above
new Doz({
    root: '#app',
    template: `
        <button-counter title="Click me!"></button-counter>
    `
});
CDN unpkg
<script src="https://unpkg.com/doz/dist/doz.min.js"></script>

Changelog

You can view the changelog here

License

DOZ is open-sourced software licensed under the MIT license

Author

Fabio Ricali

Keywords

FAQs

Package last updated on 16 May 2018

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