
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
a versatile JavaScript library offering a rich set of UI components, advanced mathematical utilities,Reactivity,animations,client side routing and graphics capabilities
💡 Zikojs a versatile JavaScript library offering a rich set of UI components, advanced mathematical utilities,Reactivity,animations,client side routing and graphics capabilities
npm install ziko
ZikoJS offers flexible math utilities, such as the mapfun
function, which allows mapping standard mathematical operations to complex and nested data structures.
For example, the cos
function in ZikoJS is built on top of mapfun, enabling it to handle multiple arguments with diverse types (numbers, arrays, objects).
import { cos, PI } from "ziko";
const result = cos(PI, PI / 2, PI / 4, [PI / 6, PI / 3], {
x: PI / 2,
y: PI / 4,
z: [0, PI / 12],
}
);
/*
result =>
[
-1,
0,
0.707106781186548,
[0.866025403784439, 0.5],
{
x: 0,
y: 0.707106781186548,
z: [1, 0.965925826289068],
},
];
*/
// console.log(result)
You can also built your own flexible Math function using this mapfun util :
import { mapfun } from "ziko";
const parabolic_func = (a, b, c, x) => a * x ** 2 + b * x + c;
const map_parabolic_func =
(a, b, c) =>
(...X) =>
mapfun((n) => parabolic_func(a, b, c, n), ...X);
const a = -1.5,
b = 2,
c = 3;
const X = [0, 1, 2, 3];
console.log(parabolic_func(a, b, c)(X));
// [3,3,1,3]
zikojs UI module adopts a distinctive approach to building and updating user interfaces. It doesn't rely on predefined markup templates. Instead, it leverages a hyperscript-like syntax to dynamically create and update user interfaces.
ZikoJS provides an intuitive file-based routing mechanism that simplifies the development of single-page applications. By organizing your page components into a directory structure, you can automatically generate routes based on the file paths. This approach enhances the maintainability of your code by allowing you to easily manage and navigate between different views in your application.
To implement file-based routing, simply use the following code:
import { FileBasedRouting } from "ziko";
FileBasedRouting(import.meta.glob("./src/pages/**/*.js"))
In this example, the import.meta.glob function dynamically imports all JavaScript files from the specified directory (./src/pages/**). Each file represents a separate route in your application, allowing you to create a clean and organized routing structure without the need for manual route configuration.
ZikoJS is designed to seamlessly integrate into other frameworks and libraries. By installing the ziko-wrapper package, you can easily use ZikoJS within your favorite frontend ecosystems.
Currently supported frameworks:
Mdzjs allowing you to write markdown content alongside Zikojs Elements
---
module :
- import InteractiveBlock from "./InteractiveBlock"
title : Article 1
---
# Hello World this is markdown heading
<InteractiveBlock data = "Hello" />
Addon | Purpose | Dependencies | Repository |
---|---|---|---|
ziko-gl | threejs | ||
ziko-code | codeMirror | ||
ziko-chart | chartjs | ||
ziko-pdf | jsPdf.js | ||
ziko-xls | xls.js | ||
ziko-lottie | Lottie-web | ||
ziko-rough | rough.js | ||
ziko-icons | fontawesome | ||
ziko-tippy | tippy.js |
If you appreciate the library, kindly demonstrate your support by giving it a star!
This projet is licensed under the terms of MIT License
FAQs
a versatile javaScript framework offering a rich set of UI components, advanced mathematical utilities, reactivity, animations, client side routing and graphics capabilities
The npm package ziko receives a total of 5 weekly downloads. As such, ziko popularity was classified as not popular.
We found that ziko demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.