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

credit-kapp

v1.1.2

Published

🎊 Automatically Credit your applications easily.

Downloads

24

Readme

credit-kapp - Effortless File Attribution Tool ✍️

credit-kapp is a CLI tool designed to automatically add custom copyright and attribution messages to your project's source files. Whether you're managing open-source projects or need to quickly credit your work, credit-kapp simplifies the process by appending customized comments to files in your project.

npm i credit-kapp@latest -g

Features 🌟

  • File Commenting: Automatically add attribution comments to your project's files.
  • Language Support: Supports a variety of programming languages such as JavaScript, Python, TypeScript, HTML, and more.
  • Gitignore Parsing: Automatically ignores files and directories defined in .gitignore.
  • Custom Messages: Easily customize the message to include your name, GitHub handle, and a personal note.
  • Force Mode: Use the --force flag to bypass checks and add comments even if they already exist.
  • Smart Insertion: Detects cases like "use server" and places the comment below, rather than overriding the content.

Getting Started πŸ› οΈ

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/kars1996/credit-kapp.git
    cd credit-kapp-cli
  2. Install the required dependencies:

    npm install
  3. Compile the TypeScript code:

    npm run build
  4. Optionally, link the CLI globally (recommended for easier access):

    npm link

Usage

Once installed, you can use credit-kapp to add comments to your project's files:

  1. Start the CLI by running:

    credit-kapp
  2. Follow the prompts to enter your name, GitHub handle, and custom message.

  3. Provide the directory path, and credit-kapp will handle the rest, appending comments to all valid files.

Options

  • --force: Use this flag to bypass checks and add comments even if comments already exist in the files.
    credit-kapp --force

File Structure

credit-kapp-cli/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ utils.ts          # Utility functions for file parsing and operations.
β”‚   β”œβ”€β”€ ui.ts             # Custom UI elements and interactions.
β”‚   β”œβ”€β”€ index.ts          # Main CLI logic and user input handling.
β”‚   └── types.ts          # Type definitions used throughout the project.
β”œβ”€β”€ package.json          # NPM dependencies and scripts.
β”œβ”€β”€ tsconfig.json         # TypeScript configuration.
└── README.md             # Project documentation (you are here).

Customizing Messages 🧩

credit-kapp allows for customization of the messages added to your files:

  1. In the CLI, follow the prompt to input your custom copyright message.
  2. To further extend credit-kapp, you can modify the logic in src/index.ts to support additional languages or customize the output format.

Made with πŸ’™ by Kars - GitHub