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 🙏

© 2026 – Pkg Stats / Ryan Hefner

jumper_react

v0.1.13

Published

Library for managment of application states and more

Readme

Jumper package · Github license · npm version

Description

Last Version: 0.1.13
Modules:

  1. jumper_react (Base module)
    • Console
    • Memory (Browser Storage)
    • Browser
  2. jumper_react/appState (Module for application state managment)
  3. jumper_react/appStateExtended (Module for application state managment - extended with developers tools only recommend during development)
  4. jumper_react/components (Components tools)
    • parseHTMLComponent
    • parseHTMLReactComponent
    • HTMLReactParser (OOP of parseHTMLReactComponent, comming soon)
    • Widget
  5. jumper_react/cryptography (Crypto algorythms module)
    • basicHashString
    • cyrb53
    • md5
  6. jumper_react/dataProcessing (Data tools module)
  7. jumper_react/languageDescriptor (Language translation module)
  8. jumper_react/models (Models module)
  9. jumper_react/service (Services and network tools module) *
  10. jumper_react/performance (Performance tools module)
  11. jumper_react/strUtils (String utilities module)
    • format
  12. jumper_react/langUtils (Javascript language utilities module)
  13. jumper_react/experimental (Experimental module)

Jumper.react Logo

Important classes

ActionsStack

  1. component : React.Component - target Component to initialize
  2. inArr : Array<ActionOperation | ...> - operations namespaces
  3. options={stackSize:20, debug:false, loadResumeable:true} : any - options to configure

in component file:

import React, { Component } from 'react';
import { ActionsStack } from 'jumper_react/appState';

export default class SampleComponent extends Component {
    constructor(props) {
        super(props);
        let self = this;
        this.state = {
            currentMenu:""
        }
        this.actions = new ActionsStack(this, [
            SampleAction1,
            SampleAction2
        ], { loadResumeable:false });
        let lastData = this.actions.restoreComponentProp("exampleData");
        this.actions.addEventListener("beforeunload", function() {
            this.saveComponentProp("exampleData");
        });
    }

    componentDidMount() {
        this.actions.restoreStacksSessions();
    }

    render() {
        return (<>
            <h1>Sample...</h1>
        </>);
    }
}

in operations/actions file:

import { ActionOperation, ActionResumeOperation, TemponaryActionOperation } from 'jumper_react/appState';

export class SampleTemponaryAction1 extends TemponaryActionOperation {

}

export class SampleAction1 extends ActionOperation {
    onStore(component, inputData) {
        component.currDocument.dimensionX += inputData.count;
        return {  };
    }
}

export class SampleAction2 extends ActionOperation {
    onStore(component, inputData) {
        component.currDocument.dimensionY += inputData.count;
        return {  };
    }
}

Important functions

parseHTMLReactComponent

  1. htmlStr: string - input with sample HTML code to parse
  2. allowedTags: Array = [] - Array of allowed or dissalowed tags (string tag name) to parse
  3. allowed: boolean - if true all tag names given in argument 2 will be parsed, otherwise ignored. https://codesandbox.io/s/jumper-module-react-simple-parser-3b8c9
import React from "react";
import "./styles.css";
import { parseHTMLReactComponent } from "jumper_react/components";

export default function App() {
  return parseHTMLReactComponent(
    '<h1><i>Hello world!</i></h1> Really? <span  id="me" style="color:green; background-color:#eee; -webkit-transform:translate(-100px,200px)">Yolo</span> <div><h2>I love react!</h2></div> <input type="text"/>',
    ["h1"],
    false
  );
}

parseHTMLComponent

  1. htmlStr: string - input with sample HTML code to parse
  2. allowedTags: Array = [] - Array of allowed or dissalowed tags (string tag name) to parse
  3. allowed: boolean - if true all tag names given in argument 2 will be parsed, otherwise ignored.
import { parseHTMLComponent } from "jumper_react/components";
let container = document.createElement("div"), childs = parseHTMLComponent(
    '<h1><i>Hello world!</i></h1> Really? <span  id="me" style="color:green; background-color:#eee; -webkit-transform:translate(-100px,200px)">Yolo</span> <div><h2>I love react!</h2></div> <input type="text"/>',
    ["h1"],
    false
  );
 for(let el of childs) container.appendChild(el);
 console.log(container);
 document.body.innerHTML = "";
 document.body.appendChild(container);

format

  1. targetStr: string - input with sample text to parse
  2. initialObj: any - can be an Array or Object.prototype. Contains a elements to replace.

Types:

  • %s - String
  • %f - float
  • %a - any
  • %ad - auto detect
  • %d - decimal
  • %n - science notation
  • %oct - octal number
  • %hex - hex number
  • %bin - binary number
  • %f{number} - floating with rounding (experimental)
  • %b - boolean
  • %bt - boolean translated (experimental)
console.log(format("Hello %s exacly! Wow, we make it %d times!", ["World", 14]));
console.log(format("Thats really simple with %s[labelsWord], you can use it in any %s[situationWord]!", {labelsWord:"labels", situationWord:"situation"}));