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

ask-chat

v0.9.43

Published

Chat GPT in terminal with snippet support and more

Downloads

24

Readme

Ask-Chat CLI Tool

The Ask-Chat CLI tool allows you to interact with a chat client using the command line interface. It also provides a variety of helpful commands for developers.

Getting Started

Requires Node and NPM to run To start the tool, simply run the command the following command in your terminal:

npx ask-chat

Usage

The ask-chat interactive terminal is effectively chat gpt with many custom commands and access to your filesystem. It will not read anything that you do not ask it to read, and it will not delete or modify files.

You can immediately start chatting:

bob: How do I write fizzbuzz in python?


Here's how you can write the fizzbuzz program in Python:


```python
for num in range(1, 101):
    divisible_by_three = (num % 3 == 0)
    divisible_by_five = (num % 5 == 0)

    if divisible_by_three and divisible_by_five:
        print("FizzBuzz")
    elif divisible_by_three:
        print("Fizz")
    elif divisible_by_five:
        print("Buzz")
    else:
        print(num)
```


In this program, we iterate over the numbers 1 to 100 using a `for` loop. For each number, we check if it is divisible by 3, 5, or both using the modulo operator (`%`).

If the number is divisible by both 3 and 5, we print "FizzBuzz". If it is divisible by 3, we print "Fizz". If it is divisible by 5, we print "Buzz". And if it is not divisible by either 3 or 5, we simply print the number itself.

snippets

save most recent code snippet from response

save

or you may copy it to the clipboard

copy

show a list of snippets

snippets

# 1 FizzBuzz.py
# 2 RecursiveCountdown.py
# 3 factorial.py

show snippet by name

snippet fizzbuzz

or by list order

snippet 1

debug

Debug a local file with chat-gpt

# absolute path
debug /Users/bob/dev/ask-chat/lib/openAiClient.js

# relative path
debug ./openAiClient.js

cat

Show file with syntax highlighting

# absolute
cat /Users/bob/dev/ask-chat/lib/openAiClient.js

# relative
cat ./openAiClient.js

other

# clear terminal window
clear

# exit the app
exit

# show the help menu with options
help

Contributing

If you'd like to contribute to ask-chat tool or report any issues, please visit the GitHub repository.

License

ask-chat CLI tool is open-source software licensed under the MIT license.