Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "aris", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Write HTML in JS easily.", | ||
@@ -5,0 +5,0 @@ "main": "aris.js", |
112
README.md
@@ -0,6 +1,14 @@ | ||
<img src="https://raw.githubusercontent.com/Vectorized/Aris/master/logo.png" width="246" height="128"> | ||
![NPM](https://img.shields.io/npm/l/aris) | ||
![npm](https://img.shields.io/npm/v/aris) | ||
![npm bundle size](https://img.shields.io/bundlephobia/minzip/aris) | ||
![Dependencies](https://img.shields.io/badge/dependencies-0-success) | ||
![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/aris) | ||
# Aris - Write HTML in JS easily. | ||
Aris is a simple library \(\< 5kb minified + gzipped\) that allows you to write HTML in JS easily. | ||
Aris is a simple library that allows you to write HTML in JS easily. | ||
If you know JS and HTML, you already know Aris. | ||
*If you know HTML and JS, you already know Aris.* | ||
@@ -19,3 +27,3 @@ ## Usage | ||
Or you can clone/download this github. | ||
Or you can clone/download this GitHub repository. | ||
@@ -26,3 +34,3 @@ ## Converter | ||
## Overview | ||
## The Idea | ||
@@ -147,4 +155,2 @@ Imagine you want to write the following shit: | ||
## Other Functions | ||
### Escaping HTML special characters | ||
@@ -162,4 +168,3 @@ | ||
`['button', {disabled: [false]}]` → `<button></button>` | ||
For a boolean attribute, wrap it in an array. | ||
A truthy value denotes its presence. | ||
For a boolean attribute, wrap it in an array. A truthy value denotes its presence. | ||
@@ -178,2 +183,43 @@ ### HTML Output Key Order and Hash | ||
## Why use Aris? | ||
- No dependencies. | ||
- No tooling. | ||
- No bloat. | ||
- No brainer. | ||
- No time wasted. | ||
- It just works. | ||
- Fast. | ||
If you think something else is better, feel free to try it and do your own comparisons. | ||
## Support | ||
Aris is actively maintained and constantly tested against all major browsers (even IE). | ||
If you have any suggestions, questions, or bug reports, please raise an issue. | ||
## FAQ | ||
- **How does Aris help me create high-performance user interfaces?** | ||
Aris is just plain old Javascript, all HTML generation is close to the metal. | ||
Use Aris to generate complex HTML and update the only the elements you need. | ||
This minimizes reflows and you will have a snappy user interface. | ||
- **What does Aris stands for?** | ||
Aris stands for "A Revolution In Syntax". | ||
We initially wanted to name our library `html.js`, but the name was taken on npm. | ||
If there is a namespace collision, you can use `aris` instead of `HTML`. | ||
`HTML` → `aris` | ||
`HTML.SVG` → `aris.svg` | ||
`HTML.SVG.Path` → `aris.svg.path` | ||
## Bonus Features | ||
### SVG | ||
@@ -275,54 +321,4 @@ | ||
## Why use Aris? | ||
Aris saves you time, effort, and brain space. | ||
If you think something else is better, feel free to use them and do your own comparisons. | ||
## Advantages | ||
- Just plain old JS. | ||
- Zero dependencies. | ||
- Zero tooling. | ||
- Learn once, use forever. | ||
- Automagic CSS prefixing. | ||
- Fast. | ||
## Performance | ||
Very fast. If anything lags, it is probably something else. | ||
## Support | ||
Aris is actively maintained and constantly tested against all major browsers (even IE). | ||
If you have any suggestions, questions, or bug reports, raise an issue. | ||
## FAQ | ||
- **How does Aris help me create high-performance user interfaces?** | ||
Aris is just plain old Javascript, all HTML generation is close to the metal. | ||
Use Aris to generate complex HTML and update the only the elements you need. | ||
This minimizes reflows and you will have a snappy user interface. | ||
- **What does Aris stands for?** | ||
Aris stands for "A Revolution In Syntax". | ||
We initially wanted to name our library `html.js`. | ||
However, when we tried to publicize our library on npm, we found that most of the good short names | ||
have been already taken by name-squatters or poor-quality libraries. | ||
Hence, have choosen to settle with another short but memorable name! | ||
If there is a namespace collision, you can use `aris` instead of `HTML`. | ||
`HTML` → `aris` | ||
`HTML.SVG` → `aris.svg` | ||
`HTML.SVG.Path` → `aris.svg.path` | ||
## License | ||
MIT |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71139
6
318