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

koa-symphony

v1.0.31

Published

koa2 webpack4 koa-router sequelize twig eslint

Downloads

11

Readme

koa-symphony

start

基于 koa2的框架。 采用三层架构,mvc思想,分离视图层和业务处。 集成了twig.js,webpack4,sequelize等组件。 方便了数据库查询,以及模版渲染

请使用 https://www.npmjs.com/package/cli-koa 生成项目

yarn global add cli-koa
cli-koa init <projectName>

目录及参数说明

config: 配置文件目录
config/db.json: 数据库配置文件
config/parameters.js:项目配置文件

中间件的优先级

优先级越小,越早执行

    LestenerMiddleware: 用户权限鉴权 优先级10
    BodyParserMiddleware: 前台查询参数处理 优先级 0
    RouterMiddleware: 路由处理 优先级50
    StaticMiddleware: 静态资源文件处理 优先级0

安装 ImageMagick

安装说明: http://www.imagemagick.org/script/install-source.php
wget -c https://imagemagick.org/download/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz
cd 解压目录
./configure
make
sudo make install
sudo ldconfig /usr/local/lib
/usr/local/bin/convert logo: logo.gif

ImageMagick 依赖

wget http://www.imagemagick.org/download/delegates/zlib-1.2.11.tar.gz
tar zvxf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make
make install

wget http://www.imagemagick.org/download/delegates/libpng-1.6.31.tar.gz
tar zvxf libpng-1.6.31.tar.gz
cd libpng-1.6.31/
./configure
make
make install

convert -list format
查看当前支持文件类型

ubuntu安装

sudo apt-get update
sudo apt-get install graphicsmagick
sudo apt-get install imagemagick