Skip to content

dana322/jquery-es

Repository files navigation

jquery-es logo

Build Status Coverage Status Version Downloads Downloads License

Modern jquery, refactoring jquery API with ES6, is lighter, more elegant, and supports ES Module.

Overview

The jquery-es is a refactoring of jquery using modern JS API, and remove the complex browser compatibility handling and regular match. The refactoring of the new API results in better performance and development experience.

The jquery-es source code uses the ES Module standard development. This means that you can do optimizations like tree-shaking with packaging tools like WebPack Rollup.

Features

  • ES Module
  • More dom friendly
  • AJAX
  • Animate

Install

#npm
npm install jquery-es --save
#yarn
yarn add jquery-es

Since jquery-es uses the ES Module standard, you need to use an environment that supports modularity. If you want to use it in a script, pull this repository and package it manually.

git clone git@github.com:Dananboom/jquery-es.git
cd jquery-es
npm install
npm run build

Find the file you need in the dist directory.

Demo

Simple to use

import $ from 'jquery-es'

// document onload
$(function(){
    console.log('hello world')
})

According to the need to import

import { version } from 'jquery-es'

// print version
console.log(version)

About

Modern, lightweight jquery with more elegant syntax.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published