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

cntrl

v1.1.6

Published

Welcome to Central, automating daily developer workflow. These docs will cover in detail how to use Central's CLI and web search querying tools.

Downloads

30

Readme

Inroduction

Welcome to Central, automating daily developer workflow. These docs will cover in detail how to use Central's CLI and web search querying tools.

What is central?

Central is a CLI tool that aims at automating daily developer workflow by bringing the power of the browser to your terminal. It simplifies the daily workflow of projects by automating tasks that are repetitive such as git workflows and searching.

How does it work?

Central comes packaged as an NPM module that can be installed globally and will help in automating workflows in the current project directory. Our robust commands cuts down a lot of repetitive git actions like committing, setting up remotes, initializing preset gitignores, simplifying repetitive searches, etc.

Installation

Walkthrough of the installation procedure.

Pre-requisites

  • NodeJS installation (v12.0 or above).

  • GitHub account.

Installation

npm i -g cntrl@latest

To verify your installation:

cntrl --version     or     cntrl -V

To get a list of all the available commands:

cntrl --help    or     cntrl -h

Usage

This is a comprehensive list of all the supported commands

init

cntrl init

Initialises a repo locally, creates a corresponding repo n GitHub, sets the remote of the current repo to the SSH URL of the repository on GitHub, and pushes an initial commit.

Executing this command throws the terminal into a REPL, where the user is prompted with a couple of questions regarding the repository.

Pre-requisites:

  • A one-time GitHub access token of the user.

ignore

cntrl ig

Generates a preset git-ignore for a language or modifies an existing one.

Upon executing this command, the user is given a choice of language (viz. dart, go, python, etc.) for which the CLI will generate a preset git-ignore file and add it to the root directory of the current project folder.

fast-commit

cntrl fci <message>

Performs a fast commit with a message.

Fast commit will help the user by adding all the files outside the git-ignore and the user will be able to give a message.

rem-commit

cntrl rc <branch-name>

Check the commits that need to be pushed on the current branch to another branch.

Check all the commits that are committed locally but are not pushed to GitHub on the current working branch.

fast-push

cntrl fp <message>

Perform a fast commit and a push on your current branch.

This will perform a fast-commit and then push the code to the current working branch.

search

cntrl s

Search various forums with a single line query.

With this command, the user will be able to get search results from YouTube, StackOverflow, and google in the terminal. The user can then click on the link and get redirected to the specific result without having to skim through different browser tabs.

StackOverflow

cntrl st

Search on StackOverflow.

The user can specifically search for answers on StackOverflow.

YouTube

cntrl yt

Search on YouTube.

The user can specifically search for answers on YouTube.

Google

cntrl g

Search Google.

The user can specifically search for answers on Google.