Socket
Socket
Sign inDemoInstall

araz

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

araz


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Araz.js

Araz.js is a mini framework that provides a simple and intuitive API for building web applications. It is inspired by popular frameworks like React and Vue.js, but with a focus on simplicity and ease of use.

Installation

To install Araz.js, simply run the following command in your terminal:

npm install araz

Usage

Araz.js is a component-based framework, which means that your application is built by composing reusable components. Each component is a self-contained unit that has its own state and logic.

To create a component, you can use the el() function. This function takes an object with three properties: $tag, $attrs, and $children.

  • $tag is the HTML tag name of the component.
  • $attrs is an object containing the attributes of the component.
  • $children is an array of child components.

For example, the following code creates a simple button component:

const button = el(
 'button',
   {
    type: 'button',
    class: 'btn btn-primary',
  },
  'Click me',
);

Once you have created a component, you can mount it to the DOM using the mount() function. This function takes two arguments: the component to be mounted, and the target element in the DOM.

For example, the following code mounts the button component to the <body> element:

mount({
  $node: button,
  $target: document.body,
});

Araz.js includes a simple router that allows

Generated by BlackboxAI

FAQs

Package last updated on 03 Feb 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