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

arsky

v2.0.1

Published

A CLI tool to fetch ASCII art or create your own from imagepath

Downloads

14

Readme

ArSky

License: MIT npm version TypeScript

ArSky is a powerful and easy-to-use Node.js CLI tool for generating or fetching ASCII art. With ArSky, you can either retrieve ASCII art for any word or create your own from an image file.

Table of Contents

Features

  • Fetch ASCII art for given words or phrases
  • Generate ASCII art from image files
  • TypeScript support for enhanced type safety and developer experience
  • Comprehensive test suite using Jest
  • Consistent code style with ESLint and Prettier
  • Cross-platform compatibility (Windows, macOS, Linux)

Installation

Install ArSky globally using npm:

npm install -g arsky

For local development:

git clone https://github.com/ArgonautAli/arsky
cd arsky
npm install

Usage

ArSky can be used with the following options:

CLI Options

  • -g, --get <text>: Input text to get ASCII art
  • -c, --create <path>: Input path to an image file to create ASCII art
  • -s, --search <text>: Input text to create ASCII art from Google image search results
  • -v, --version: Display the current version of ArSky
  • -h, --help: Display help information

Examples

Fetch ASCII art for a word from archives:

arsky -g coffee

Create ASCII art from an image:

arsky -c path/to/your/image.png

Create ASCII art from a random image using Google image search:

arsky -s "michael scott"

For more options and detailed usage instructions:

arsky --help

Development

Prerequisites

  • Node.js (version 14 or higher)
  • npm (version 6 or higher)

Available Scripts

  • npm run build: Compile TypeScript to JavaScript
  • npm start: Run the compiled app
  • npm run dev: Run the app in development mode with ts-node
  • npm test: Run the test suite
  • npm run lint: Run ESLint
  • npm run lint:fix: Run ESLint with auto-fix
  • npm run format: Format code with Prettier
  • npm run format:check: Check code formatting without making changes

Testing

We use Jest for unit testing. Run the test suite with:

npm test

Linting and Formatting

This project uses ESLint for linting and Prettier for code formatting.

To run the linter:

npm run lint

To automatically fix linting issues:

npm run lint:fix

To format code with Prettier:

npm run format

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please ensure your code adheres to the existing style by using the provided ESLint and Prettier configurations.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Troubleshooting

If you encounter any issues, please check the FAQ or open an issue in the GitHub repository.

Changelog

For a detailed list of changes and version history, please refer to the CHANGELOG.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • ASCII Art Archive for providing a vast collection of ASCII art
  • Sharp for high-performance image processing
  • Commander.js for command-line interface support
  • All the contributors who have helped shape ArSky