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

smart-flow-chart

v1.0.3

Published

An NPM package for quickly creating flow charts.

Downloads

3

Readme

背景介绍

项目介绍

查看示例

使用说明

License

联系

贡献者/鸣谢

执行 npm run test 进行测试

执行 npm run test:c 查看测试覆盖率

yalc publish

yalc update // or yalc update [name]

yalc remove [name] // or yalc remove --all

1、esm: ES Modules, ECMAScript标准中定义的模块规范。适用于现代浏览器和Node.js环境下支持ES6及以上版本的js引擎 2、cjs: CommonJS 通用模块规范。适用于Node.js环境下支持ES6以上的js引擎 3、amd: 异步模块定义。适用于浏览器端的模块加载器(如RequireJS)(引入方式require(['path/to/my-library.amd.js'], function() {// 在回调中访问myLibrary对象,并调用其中的方法或属性})) 4、iife: 立即执行函数表达式。将代码包装再一个匿名函数内,并立即调用该函数以创建闭包作用域,避免全局变量污染(使用script标签引入) 5、umd: 通用模块定义。既可以再浏览器端使用AMD或者CommonJS方式加载,在node环境下也能够正常运行(使用script标签引入,也可以在node中使用require引入) 6、system: System.register()格式是SystemJS库实现的一种格式(可以使用script标签引入,也可以使用如3中的方式引入)

// 单个 // cjs 是 Node 中的模块规范// main一般配置cjs或者js "main": "./lib/index.cjs.js", // module字段指定esm格式打包后的入口文件路径 "module": "./lib/index.esm.js", // ts需要配置此字段才能找到ts类型 "types": "./lib/index.d.ts",

"dev": "cross-env NODE_ENV=dev rollup -c -w", "build": "rimraf lib && cross-env NODE_ENV=production rollup -c",

// 多个 "main": "dist/sumfunctionmethods.umd.min.js", "module": "dist/sumfunctionmethods.esm.js", "unpkg": "dist/sumfunctionmethods.js", "jsdelivr": "dist/sumfunctionmethodsjs",

"dev": "rollup -w --environment NODE_ENV:development -c scripts/rollup.config.dev.js", "build": "rollup --environment NODE_ENV:development -c scripts/rollup.config.prod.js",