# idealjs

> Just a prototype JavaScript/ES6 framework

Latest version **1.0.0** (published 2017-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install idealjs
pnpm add idealjs
yarn add idealjs
bun add idealjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-24 |
| First published | 2017-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Arthur Araújo |
| Maintainers | arthuraraujo |

## Links

- npm: https://www.npmjs.com/package/idealjs
- Repository: https://github.com/webarthur/ideal.js
- Homepage: https://github.com/webarthur/ideal.js#readme
- Issues: https://github.com/webarthur/ideal.js/issues
- npm.io page: https://npm.io/package/idealjs

## Recent versions

- 1.0.0 (latest) — 2017-02-24

## README

[Ideal.js](http://ideal.araujo.cc/) — Just another prototype JavaScript framework
==================================================

How it works?
---------

```html
<div id="gallery"></div>
```

```js
var $gallery = $e('gallery')
$gallery.append('<img src="[...]" />')

var $images = $gallery.findAll('img')
```

Including Ideal.js framework to my all.js using Gulp
---------

```js
var ideal = require('idealjs')
var gulp = require('gulp')
var concat = require('gulp-concat')

gulp.src('src/*')
  .pipe(ideal({
    include: ['http']
  }))
  .pipe(concat('all.js'))
  .pipe(gulp.dest('js'))
```

Import a function in Node JS
---------

```js
var ideal = require('idealjs')

ideal.import('Date.isLeapYear')

console.log(Date.isLeapYear(2020))
```

Core Functions
---------

* **$** -> $('menu a') / $findAll('menu a') / Element.findAll('')
* **$find([query])** -> same as document.querySelector()
* **$findAll([query])** -> same as document.querySelectorAll()
* **$all([className])** -> same as document.getElementsByTagName()

Element Functions
---------

* .append()
* .prepend()
* .after()
* .before()

Ajax Functions
---------

* http()
* http.post()
* http.put()
* http.delete()
* http.file()

URL Functions
---------

* location.getQueryParam([paramName], [query])
* location.getQueryParams([query])

Date Functions
---------

* Date.isLeapYear(2020)
* Date.isvalid('29/02/2020')

---
_Source: https://npm.io/package/idealjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
