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

upcharts

v1.2.3

Published

make some descriptions here!

Downloads

6

Readme

UPCHARTS📈

UPCHARTS is a “wheel”(yeah, u konw what i mean!👀),it can help you with React Visualization Library rather than spending lots of time on how to configure these charts, and what you need to to is just input the data!

Getting Started

npm install upchart --save or yarn upchart, than you can import these instance in the React projects!

Development

Local

ADD LOCAL DEPENDENCY

  • cd example goto example directory
  • npm i add lots of npm's packages🙉

LOCAL DEVELOPMENT

  • npm run ex To start the example development
  • npm run dev To listen anything changes in ./src and move the whole src directory to ./example/src
  • npm run hbuild To listen anything changes in ./src and rebuild the npm

Attention, i have created the npm directory, so you can publish the npm package in this folder, so you can config the control.sh to do something, in this case to avoid some unless dependencies!

How to build?

  1. do npm install to import some dependences
  2. develop under src/ directory(or you can modify rollup.config.js -> input to change the rule)
  3. do npm run build to generate index.js on root,the publish it to the NPM platform

About

Support Typescript

Firstly, you need to npm install --save typescript @types/node @types/react @types/react-dom @types/jest and npm install --save-dev @rollup/plugin-typescript to support Typescript compile and package!

Then, we need to add some configs:

  • remove outDir in tsconfig.json, or you will caught some errors when packing
  • config types in package.json, which will take the type define file into the bundle
  • config files to open whitelist, used to publish the target files to npm

Attention: dependencies is required to support the .d.ts file, see publish for more details

React

In most case, you will not want to include some packages(like React, lodash etc) when bundle up.

You can config external: ["react", "react-dom"] in rollup.config.js to avoid this case, it will not the bundle up the whole react, and will replace with var React = require('react');, so you must ensure that you have included the react in your project!