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

venus-acm

v2.0.1

Published

Merge cpp codes into single sources file.

Readme

Why

In ACM competitions or when writing algorithmic questions, usually only a single file can be submitted to the online judgment system. But there are many mature algorithms or data structures that can be used as black-box code (such as Binary Search Tree), so you can maintain your own code base and import local algorithm codes through the -I option of the g++ compiler.

The goal of this project is to parse the cpp source code and replace the source code of the local cpp source files with the corresponding #include macro declarations.

Install

  • npm

    npm install -g venus-acm
  • yarn

    yarn global add venus-acm

Usage

$ venus --help

Usage: venus-acm [options] [command]

Options:
  -V, --version                                     output the version number
  --log-level <level>                               specify logger's level.
  --log-name <name>                                 specify logger's name.
  --log-mode <'normal' | 'loose'>                   specify logger's name.
  --log-flag <option>                               specify logger' option.
                                                    [[no-]<date|title|colorful|inline>] (default: [])
  --log-filepath <filepath>                         specify logger' output path.
  --log-encoding <encoding>                         specify output file encoding.
  -c, --config-path <configFilepath>                config filepaths (default: [])
  --parastic-config-path <parasticConfigFilepath>   parastic config filepath
  --parastic-config-entry <parasticConfigFilepath>  parastic config filepath
  --encoding <encoding>                             default encoding of files in the workspace
  -h, --help                                        display help for command

Commands:
  generate|g [options] <sourc> [outpu]
  help [command]                                    display help for command

Sub-command init

  • Overview

    $ venus init --help
    Usage: venus-acm init|i [options] <workspace>
    
    Options:
      --plop-bypass <plopBypass>  bypass array to plop (default: [])
      -h, --help                  display help for command
    • Arguments

      • <workspace>: location of the cpp project root dir.
  • Example

    $ venus init acm-cpp

    Then, a directory named acm-cpp with structure like below will be created:

    acm-cpp
      ├── .vscode
      │   └── settings.jsonp
      ├── oj
      │   └── fake
      │       └── 01.cpp
      ├── script
      │   └── run.js
      ├── src
      │   └── @guanghechen
      │       └── algorithm
      │           └── match-first.hpp
      ├── .clang-format
      ├── .editorconfig
      ├── .eslintignore
      ├── .eslintrc
      ├── .gitignore
      ├── .prettierignore
      ├── .prettierrc
      ├── CMakeLists.txt
      └── package.json

Sub-command generate

$ venus generate --help
Usage: venus-acm generate|g [options] <source filepath> [output filepath]

Options:
  --remove-comments                     remove comments
  --no-remove-comments
  --remove-spaces                       remove spaces
  --no-remove-spaces
  --remove-freopen                      remove freopen statements
  --no-remove-freopen
  --remove-assert                       remove assert statements
  --no-remove-assert
  -u, --uglify                          shortcut of --rc --rs.
  --no-uglify
  -c, --copy                            write generated code into system clipboard
  --no-copy
  -f, --force                           force write the generated code into output filepath
  --no-force
  -I, --include <include_directory...>  include directories
  -o, --output <output filepath>        specify the output filepath
  -h, --help                            display help for command
  • Arguments

    • <source filepath>: The entry filepath of cpp source codes.
    • [output filepath]: The output filepath that the generated codes writes to.
  • Options

  • Example

    venus generate oj/fake/01.cpp --output venus.cpp --copy

    Then, the generated code will be copied to the system clipboard and saved into venus.cpp.