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

mangekyou

v0.7.22

Published

简单的图像处理程序

Downloads

5

Readme

mangekyou

license npmjs version

codeclimate analysis travis-ci david-dm

:stars:简易图像处理程序。

功能

  • 采样:自定义距离重采样
  • 量化:RGB 通道 1~256 级量化
  • 灰度化(HSL,HSY,平均值,最大值,最小值)
  • 位平面:RGB 通道分别 8 级量化后的位平面
  • 直方图和统计信息:R/G/B/Rec. 709 4 个通道的直方图及详细信息
  • 直方图均衡化:HSL、HSV、HSY 三种空间亮度通道均衡
  • 二值图:HSL、HSV、HSY 三种空间亮度通道为阈值的二值图。

使用

# 从 npm 安装
npm i -g mangekyou

# 运行
mangekyou

目录结构

./
├── .babelrc          // 编译配置
├── .codeclimate.yml  // Code Climate 平台配置
├── .travis.yml       // Travis CI 平台配置
├── .eslintrc         // 静态分析配置
├── .gitignore        // git 忽略文件配置
├── gulpfile.babel.js // 构建配置
├── LICENSE           // 发布协议
├── package.json      // 依赖信息
├── README.md         // 自述文档
└── src               // 源代码目录
    └── app
        ├── index.html    // 界面基底
        ├── main.js       // 主程序入口
        ├── script
        │   ├── entry.js    // 界面程序入口
        │   ├── app.jsx     // 主窗口
        │   ├── keyMap.js   // 键盘映射配置
        │   ├── component   // 界面组件目录
        │   │  └── tool    // 各种算法对应的控件目录
        │   ├── constant    // 程序常量
        │   ├── action      // Flux 架构的 Action
        │   ├── dispatcher  // Flux 架构的 Dispatcher
        │   ├── store       // Flux 架构的 Store
        │   └── worker         // 处理计算的程序目录
        │       ├── worker.js  // 计算程序入口
        │       ├── util.js    // 通用算法模块
        │       └── ....js     // 文件名对应相关算法
        └── style // 界面样式表目录

构建

环境需求:

  • Node.js,最新稳定版本
  • npm,最新稳定版本
  • git
#克隆代码到本地
git clone --depth=1 https://github.com/frantic1048/mangekyou.git
cd mangekyou

# 开始构建
gulp ci

# 运行
npm run run