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

yugon-cli

v1.0.4

Published

产品报表工具

Readme


title: yugon-cli publishDate: 2018-10-31

基于持仓表、估值表等数据源生成产品报表

安装

运行环境

安装nodejs, 点击下载:https://nodejs.org/dist/v10.13.0/node-v10.13.0-x64.msi

打开cmd命令行工具

开始 - 运行 - cmd - 回车

基础环境

npm install -g yugon-cli

这样就安装完成了。

使用

查看使用说明

yg // 查看工具使用说明
yg generate --help // 查看具体使用选项

切换到工作目录

第一次使用时,建议设置一个工作目录,以d:\work为例,在d\work文件夹下新建input文件夹,input文件夹下存放估值表、持仓表、产品模板(产品模板从以下地址下载:https://coding.net/u/maoquan/p/yg/git/raw/master/input/template.docx)等文件

cd d:\work\input

生成

如果使用默认的文件名称(估值表:valuation.xls, 持仓表:holding.xlsx),则直接运行

yg generate

如果要设置文件名称,则可查看生成选项

yg generate --help

帮助信息如下:

  Usage: generate [options]

  创建文档

  Options:

    -f, --force                  是否强制覆盖已存在文件
    -o, --output <output>        生成文件名称,默认为当天日期,如2018-10-31.docx
    -t, --template <template>    模板文件名称,默认template.docx
    -v, --valuation <valuation>  估值表文件名称,默认valuation.xls
    -h, --holding <holding>      持仓表文件名称,默认holding.xlsx
    -h, --help                   output usage information

具体使用示例

yg generate --valuation=valuation3.xls --output=2018-10-31-3.docx // 表示估值表文件名称为valuation3.xls, 生成文件名称为2018-10-31-3.docx