We are about to rebuild the community of this project and rename this project. We are about to stop the update of Peb.js, but there will be exactly the same alternatives
Pecis is out! Use Pecis now! :D
Looking for README in other languages?
็ฎไฝไธญๆ | English
ECMAScript 6 lightweight API that makes JS development easier. Make the code faster, more efficient, easier to read, and compatible with other parts of the API. Created by TechPot Studio, some methods are borrowed from jQuery, and basically conform to the writing habits of the public.
Microsoft's support for Internet Explorer has ended. We will also discontinue its compatible code since v3.0.0
.
Documents: View
Peb.js 3.2.0+
peb.sel('div#foo').toggleVisible();
peb.sel(document).DOMReady(function () {
peb.log('READY');
});
peb.log.group('foo', true, function () {
peb.log.warn('WARNING');
});
JQuery
$('div#foo').toggle();
$(document).ready(function () {
console.log('READY')
});
console.groupCollapsed('foo');
console.warn('WARNING')
console.groupEnd();
$ npm install peb
/* ES6 */
import peb from 'peb'
/* CommonJS */
const peb = require('peb');
Note: If you use Node.js, version 14.0.0 or above is recommended. Lower versions may work, but there may be problems.
<script src="//cdn.jsdelivr.net/npm/peb" type="module"></script>
<script src="//unpkg.com/peb" type="module"></script>
type="module"
is only applicable after v3.1.0
And, we allowed download source code.
Number is the least version it supports
Browser | |||||
---|---|---|---|---|---|
Full Support | 54 | 63 | 10.1 | 79 | 41 |
Go to the function documentation to view the specific supported browsers of the function
The source of this information: developer.mozilla.org
Name | Contributes |
---|---|
TheColdPot | ๐ป๐๐๐จ๐ค๐โ๐ฆ |