Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chirashijs/chirashi
Fast, modular, lightweight and simple DOM and events manipulation
https://github.com/chirashijs/chirashi
Last synced: 6 days ago
JSON representation
Fast, modular, lightweight and simple DOM and events manipulation
- Host: GitHub
- URL: https://github.com/chirashijs/chirashi
- Owner: chirashijs
- License: mit
- Created: 2015-08-15T22:29:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T00:27:08.000Z (over 4 years ago)
- Last Synced: 2024-10-13T00:27:47.402Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://chirashi.js.org
- Size: 2.28 MB
- Stars: 43
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![chirashi](./logo.png)](https://chirashi.js.org)
[![npm version](https://badge.fury.io/js/chirashi.svg)](https://badge.fury.io/js/chirashi)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![Code Climate](https://codeclimate.com/github/chirashijs/chirashi/badges/gpa.svg)](https://codeclimate.com/github/chirashijs/chirashi)
[![Issue Count](https://codeclimate.com/github/chirashijs/chirashi/badges/issue_count.svg)](https://codeclimate.com/github/chirashijs/chirashi)
[![Test Coverage](https://codeclimate.com/github/chirashijs/chirashi/badges/coverage.svg)](https://codeclimate.com/github/chirashijs/chirashi/coverage)
[![Build Status](https://travis-ci.org/chirashijs/chirashi.svg?branch=master)](https://travis-ci.org/chirashijs/chirashi)## Intro
Chirashi.js is a utils library meant to make DOM manipulation and events management easier and faster to read and write without adding overcomplecated internal logic.
The library designed as modules of single functions allowing to reduce size of your production build to only the needed code (thanks to [esnext modules](https://github.com/dherman/defense-of-dot-js/blob/master/proposal.md)).
## Get started
Find API documentation, guide and more on [chirashi.js.org](http://chirashi.js.org).
## Quick view
### Installation
#### Using npm / yarn (recommended)
```
yarn add chirashi
```
or
```
npm i --save chirashi
```Now you can import methods in your project:
```js
import { ready, append } from 'chirashi'ready(() => {
append(document.body, 'Hello World!
')
})
```#### Standalone
You can download [chirashi.js](https://github.com/chirashijs/chirashi/releases/download/6.5.0/chirashi.js) or [chirashi.min.js](https://github.com/chirashijs/chirashi/releases/download/6.5.0/chirashi.min.js) and load it using a script tag. You can also use CDN version of those files from unpkg using the link [https://unpkg.com/[email protected]/dist/chirashi.min.js](https://unpkg.com/[email protected]/dist/chirashi.min.js). It'll create an instance of Chirashi on your window. Then use as following example
```js
Chirashi.ready(function () {
Chirashi.append(document.body, 'Hello World!
')
})
```