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

apsjs

v0.2.3

Published

learning about the NodeJs and try it

Readme

apsjs - (A NodeJs Learning and Trying)

2017年8月9日 星期三
无外部依赖 nodeJs 程序开发

about the Joshua_Conero

install

    $ npm install apsjs

实现的功能

    $ apsjs --build/b   file                编译file为js
            --build/b   .或--all/-all/      编译所有已经缓存的文件; --all=force 时强制编译,而不根据新建判断
            --build/b   --list/l            显示或有已经缓存的编译文件
            --build/b   --remove/rm=file    清除缓存中的文件
            --build/b   --remove=all        清除缓存中所有的文件
            --build/b   --add/a=file        新增缓存中的文件

            --build/b   --init/i=force      初始化 "apsjs.compiler.json" 配置文件,force 强制执行    
            --build/b   --cmake/c=Module    根据 "apsjs.compiler.json" 配置自动编译文件, 配置 Module 时编译对应模块模板,否则全部

    $ apsjs --config/c  --init/t            配置初始化; --init/t=force 表示强制更新
            --config/c  --get=..            获取系统全部配置
            --config/c  --get=key           通过key读取对应的配置
            --config/c  --set=key1/value1 通过key读取对应的配置
    
    $ apsjs --fs/f      --fs=%%             文件搜索表达式,搜索当前根目录文件

Html2js 模板编译器 (20170810)

简单化nodejs 模板编译的实现

模板语法格式

```javascript    
//1.
<a href="{{ value }}">   =>  '<a href="'+ value +'">'
{{ value }}

//2. 基本用法 - 简单实现(流程式编程)
{{ data.key }} // => data['key'], 通过 compiler_point_clear 配置项开启
{{# Math.rand()}}            // => 连接处不做编译解析
{{ data.k1 || data.k2}}      // => (data.k1? data.k1 : data.k2))

//3. if 语句的实现 - 简单实现(流程式编程解决方法)
{{if dd.key == dd.emma}}
{{/else}}
{{/if}}

// 4 apsjs 特殊标签
<apsjs item="import" file="./extendtpl/extend.html" />      // 文件导入模板
<apsjs item="function" name="__JsDlgcompileFn" />      // 编译的函数名称等处理
```

SuCompiler - 新编译器/ Su(20170831)

Cli-router Cli路由器的实现 (20170810)

cli-router

版本信息

详情 v0.1.x

html2js     的实现

v0.2.x

文件搜索功能实现,以及搜索是缓存处理    

npm - cli 程序开发指导

1.自定义一个npm脚本

  • 1.新建一个项目(在任何路径都可以);
  • 2.使用npm init -y初始化项目
  • 3.新建一个index.js文件,在文件的第一行添加 #!/usr/bin/env node
  • 4.在package文件中添加一个bin字段,bin字段是一个键值对,键名是生成的.cmd文件的名字,值是执行这个命名所要执行的脚本. "bin":{"lcopy":"./index.js"}
  • 5.打开终端进入当前目录的根路径,执行npm linknode会自动去全局路径创建cmd文