npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

xeer-js

v0.7.1

Published

Javascript Framework

Downloads

6

Readme

An experimental javascript framework aiming to be a complete prototyping framework .

XEER framework contains :

  • Core Utils
    • Extended Collection utilities: chunk, omit, join, etc.
    • Function helpers: throttle, debounce, etc.
    • String analyzers and transformers.
    • Concise Type Checking: isNull, isObj, etc.
  • DOM Utils
    • Flexible, Fool-Proof element/class/attribute/style CRUD
    • Painless, Predicable Event Handling
    • Optional native method wrappers for addEventListener, etc. for debugging or other purposes
  • HTTP Client
    • Supports Promises and async/await
    • Rate Limitting
    • Request cancellation
  • VirtualDOM
  • Dynamic ViewModel Components ~~( React, Vue, Mithril, ... )~~

Installation

Package Manager

Simply use any package manager (npm, yarn, pnpm, ...) to install from npmjs.org

$ npm i xeer-js

From Source

Clone the repository and install dependencies using your prefered package manager

$ git clone https://github.com/kasra-sh/xeer-js.git
$ cd xeer-js
$ npm install

To regenerate extensions and bundles, make sure you have Parcel installed globaly:

$ pnpm bundle

Usage

Node module

Use any package manager (npm, yarn, pnpm, ...) to install from npmjs.org

$ npm i xeer-js

Bundled

Clone the repository and install dependencies using your prefered package manager

$ git clone https://github.com/kasra-sh/xeer-js.git
$ cd xeer-js
$ npm install
$ npm bundle

bundled files are generated in dist directory. xeer-bundle-es5.js supports IE9+ and xeer-bundle.js is for modern browsers supporting async/await syntax.

Extensions

Extensions are helper methods appended to prototypes which help make the code cleaner. For example X.addClass($('div'), 'container') will become $('div').$addClass('container'). Extension method names all have $ prepended to their names to prevent method overrides or duplication.

How to use

  • If using a bundled version, extensions are enabled by default.
    <!-- Modern !-->
        <script src="xeer-bundle.js"></script>
    <!-- Legacy !-->
        <script src="xeer-bundle-es5.js"></script>
        <script>
          var obj = {
              ABC: "text1",
              ACD: "text2",
              BAR: 1
          }
          console.log(obj.$filter((v,k)=>k.$startsWith('A')));
          // Outputs object { ABC: "text1", ACD: "text2" }
        </script>
    <!-- ... !-->
  • If using as module in a node project:
    // All extensions
    require("xeer-js/ext"); 
    
    // Stream processing extensions
    require("xeer-js/colelctions.ext");  
      
    // DOM extensions
    require("xeer-js/dom.ext");

TODO

  • ViewModel Rendering
  • Documentation