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

echarts-tools

v1.2.1

Published

Simplified ECharts utilities for Vue2 and HTML

Readme

echarts-tools Basic Guide

🚀 Quick Start

Environment Setup

  1. Install Node.js 14.18+
    • Official Download
    • Verify installation:
      node -v  # Should display v14.18 or higher
      npm -v   # Should display 6.x+

Clone Project

git clone https://github.com/Geoffwo/echarts-tools.git
Or use China mirror:
git clone https://gitee.com/Geoffwo/echarts-tools.git
cd echarts-tools

Install Dependencies

npm install

Build Project

npm run build

After building, you'll get:

dist/
├── cjs/    # For Vue2 projects
└── iife/   # For direct HTML usage

📂 Directory Structure

echarts-tools/
├── dist/           # Build output (DO NOT modify manually)
├── src/            # Source code (unobfuscated)
├── page/           # Code examples
├── config/         # Build configurations
│   ├── esbuild.mjs          # ESBuild config
│   └── obfuscator.config.js # Obfuscation config
├── package.json    # Project config
├── README.md       # Documentation (English)
└── README-zh.md    # Documentation (Chinese)

🛠️ Usage

For Vue2 Projects

  1. Install dependencies

    npm install echarts-tools echarts@5 --save
  2. Component usage example:
    vue2Demo.vue

For HTML Direct Usage

Example:
htmlDemo.html


🔧 Common Commands

| Command | Description | |----------------------|----------------------------------| | npm install | Install development dependencies | | npm run build | Build production version (with obfuscation) | | npm run es5build | Build without obfuscation (for debugging) |


⚠️ Important Notes

  1. echarts Peer Dependency
    This library requires echarts 5+:

    npm install echarts@5 --save
  2. Code Protection
    Files in dist/ are obfuscated:

    • Use npm run es5build for unobfuscated debug builds
    • Obfuscation config: config/obfuscator.config.js
  3. Browser Compatibility
    IIFE version requirements:

    <!-- Load echarts first -->
    <script src="echarts.min.js"></script>
    <!-- Then load this library -->
    <script src="echarts-tools.js"></script>

📜 View Documentation

Access API docs programmatically:

import { printDoc } from 'echarts-tools';
printDoc(); // Prints all available methods and configs

💖 Project Support

If this project helps you, consider supporting maintenance:

• 🚀 Any amount - General support

• ☕ 5 CNY - Buy me a coffee

• 📚 10 CNY - Documentation improvements

| Alipay | WeChat Pay | |----------------------------------|-------------------------------------| | alipay | wechat |

Donation Terms

  1. All donations are voluntary gifts
  2. No services or obligations are implied
  3. No contractual relationship established
  4. Minors must obtain guardian consent

Technical Support

Contact: [email protected]