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

@cray/pyramid

v1.0.13

Published

Statistics your blog data.

Downloads

16

Readme

Pyramid

Statistics your blog data.

获取博客文章,进行统计数据。

compatible(兼容的博文)

hexo ,jekyll is ok.

使用 hexojekyll 构建的博客基本上只有符合下面的文章都支持。

//1.
---
title: Github-我的第一篇博客
date: 2017-04-24 10:30
categories: [前端]
author: Yi
---

//2.
---
layout: page
title: Github-我的第一篇博客
categories:  [笔记]
tags: [记事]
---

please see pyramid.config.js

start

npm install first.

node : v7.6+

//pyramid.config.js
'use strict';

const path = require('path');

module.exports = {
  root: 'E:\\git\\yi-love.github.io\\_posts', //bolg markdown file path
  strict: true, // if error exit 1   .. only ci
  extensions: [],  //ext file want read
  encoding: 'utf-8', //file encode
  author:'',  //no author file can set author default `Owner`
  filename: 'pyramid.html', //html file name
  hashFile: true,
  blogName: '',
  url: './static', //js,css path in html set
  cache: '',
  webpack: true, // if set false : return  articles
  watch: false,
  autoClear: true, // clear cache path
  mode: 'production', //webpack module
  viewPath: path.resolve(process.cwd() , 'pyramid'), //html path you want
  staticPath: path.resolve(process.cwd() , 'pyramid/static') // js,css path you want
};

1. npm

npm install -save-dev @cray/pyramid

cmd:

npm run start

open output path index.html.

2. CI

install:

npm install -g @cray/pyramid

open you blog dir:

npm install --save-dev pyramid

next ... cmd:

pyramid [configPath]

if travis CI thorw error:

ERROR in ./node_modules/tui-chart/dist/tui-chart.css
Module build failed: ModuleBuildError: Module build failed: Error: No PostCSS Config found in: /home/travis/build/futuweb/futu.im/node_modules/tui-chart/dist
    at /home/travis/build/futuweb/futu.im/node_modules/postcss-load-config/index.js:51:26
    at runLoaders (/home/travis/build/futuweb/futu.im/node_modules/webpack/lib/NormalModule.js:252:20)
    at /home/travis/build/futuweb/futu.im/node_modules/loader-runner/lib/LoaderRunner.js:364:11
    at /home/travis/build/futuweb/futu.im/node_modules/loader-runner/lib/LoaderRunner.js:230:18
    at context.callback (/home/travis/build/futuweb/futu.im/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at Promise.resolve.then.then.catch (/home/travis/build/futuweb/futu.im/node_modules/postcss-loader/lib/index.js:194:71)
 @ ./node_modules/@cray/pyramid/client/index.js 5:0-38

please add postcss.config.js

3. require

const pyramid = require('@cray/pyramid');

pramid([options]).then();

options is default pyramid.config.js

example

Github: https://github.com/futuweb/futu.im

统计url: https://futu.im/statistics/