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

quickref-cli

v0.2.17

Published

This project was modified base on 'refs-cli' to meet my needs; the project is a html website genertator base on .md.

Downloads

15

Readme

Quickrefs CLI

该项目是在refs-cli的基础上做的改进,用于帮助快速搭建博客网站,它能扫描 .md 文件并打包生成样式美观的 .html 文件

使用方法

1、安装

npm i quickref-cli -g

2、按要求严格创建项目目录

├─input
├─attachments
├─README.md
└─.refsrc.json

|名字|描述|备注| |---|---|---| |input|输入目录|可自定义名字;里面的.md将被打包成.html| |attachments|附件目录|可自定义名字| |README.md|博客首页|不可自定义名字;将被打包成index.html| |.refsrc.json|配置文件|不可自定义名字|

指令

Usage: quickref-cli [output-dir] [--help|h]
  Displays help information.

Options:
  --help, -h      Displays help information.
  --version, -v   Show version number
  --watch, -w     Watch and compile Markdown files.

Example:
  $ npm i quickref-cli -g
  $ quickref-cli
  $ quickref-cli -w

[email protected]

.refsrc.json配置

{
    "title": "Quick Reference",
    "description": "{{description}}. Sharing Quick Reference Cheat Sheets for Developers",
    "keywords": "reference-cli,reference,refs-cli,refs,cli",
    "data-info": "👆👆need your participation",
    "search": {
        "label": "搜索",
        "placeholder": "请输入搜索内容",
        "cancel": "取消"
    },
    "editor": {
        "label": "编辑",
        "disabled": true
    },
    "github": {
        "url": "https://github.com/yacshy/yacshy.github.io"
    },
    "inputDir": "./refs",                     // 输入目录
    "outputDir": "./docs",                    // 输出目录
    "attachmentDir": "./attachments",         // 附件目录
    "server": {                               // 在本地8181启动一个服务器,热更新,方便一边写一遍看
        "port": 8181,                            // 服务器端口
        "root": "./docs",                        // 在哪个目录下启动服务器?(一般和输出目录保持一致)
        "file": "index.html"                     // 服务器入口页面(一般是index.html)
    }
}

语法

为了创建你想要的、美观的博客,我们还需要掌握一些“语法”,不然你就只能创建简单的博客网站,尽管这个脚手架打包后的默认样式已经挺美观的了,但我仍然建议了解一点简单的语法