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

tc-sub-cli

v1.0.2

Published

A CLI tool that will be used by Topcoder members to submit their solutions on challenges.

Readme

tc-submission-cli

Dependencies

  • nodejs https://nodejs.org/en/ (v10)
  • npm https://www.npmjs.com/ (v6)

Configuration

Configuration for the application is at config/default.js. The following parameters can be set in config files or in env variables:

| Property | Environment varible | Default value | Description | | --- | --- | --- | --- | | LOG_LEVEL | LOG_LEVEL | info | control log level | | SUBMISSION_API_URL | TEST_SUBMISSION_API_URL | https://api.topcoder.com/v5/submissions | the TC submission API URL | | TC_AUTHN_URL | TC_AUTHN_URL | https://topcoder.auth0.com/oauth/ro | API that is used to fetch JWT token v2 | | TC_AUTHZ_URL | TC_AUTHZ_URL | https://api.topcoder.com/v3/authorizations | API that is used to fetch JWT token v3 | | TC_CLIENT_ID | TC_CLIENT_ID | 6ZwZEUo2ZK4c50aLPpgupeg5v2Ffxp9P | TC client ID | | TC_CLIENT_V2CONNECTION | CLIENT_V2CONNECTION | LDAP | TC client connection protocol |

Publish the package to npm

  • Create a npm account on https://www.npmjs.com/signup if you don't have one.
  • Use the account to sign in via cli: npm login
  • In the root directory of the project, run npm publish --access=public to publish the package to npm registry.

Notes

  • In rare cases the module name would have been used by others. You may need to change the value of the name field in package.json to a unique one.
  • When you make changes to your code and want to update the package you'll need to update the version of the package. After that, run npm publish again to republish the package.
  • If you want to remove the package from npm registry anyway, run npm unpublish --force under the root directory of the project.

Installation

  • After you published the package to npm registry you can then install the package via npm-cli:
npm install -g <your package name here>

Usage

First, install the package, and then run tc-submission-cli command on the root directory of your project with .topcoderrc file. It'll then automatically zip all files under the root directory recursively(except the .topcoderrc file itself) and finally upload the zip file to the TC challenge as a submission.

An example .topcoderrc file should conform to at least the following structure.

{
  "challengeIds": [
    "30095545" // at least one item here
  ],
  "userId": "8547899",
  "username": "TonyJ",
  "password": "appirio123"
}

test

Prepare

  • Install dependencies npm install

Unit test

To run unit tests alone

npm run test

To run unit tests with coverage report

npm run test:cov