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

changelog-keeper2

v0.2.1

Published

Don’t let your friends dump git logs into changelogs. Generate a changelog from manually writen changes according to https://keepachangelog.com.

Downloads

8

Readme

Changelog Keeper

Don’t let your friends dump git logs into changelogs.

This tool helps you write changelogs that adhere to https://keepachangelog.com.

The main features are:

  1. Lets you author your changes manually.
  2. Lets you structure your changes consistently by providing interactive input and validation.
  3. Lets you manually edit generated JSON as well as CHANGELOG.md and TESTINGNOTES.md files if needed.
  4. Avoids merge conflicts in CHANGELOG.md and TESTINGNOTES.md files.
  5. Doesn't depend on git, GitHub, or any CI.

How it works

There are 2 main commands - add and release. Adding a changelog will generate a JSON file that contains all provided information per change. Releasing will compile all generated JSON files into markdown, insert them into CHANGELOG.md and TESTINGNOTES.md, then delete JSON files. After that, you can decide to commit the changes and/or adjust generated markdown files.

Install

npm i changelog-keeper2

or

yarn add changelog-keeper2

Add

To add a change, run changelog-keeper add. It lets you create a change interactively or via flags and generates a JSON file with the information you provided. That file contains information for a single change and should be checked into the version control so that your Pull Requests always come along with the change files.

Release

To release a new version, run changelog-keeper release. After you specify a version you want to release, it generates markdown text for changelog and testing notes and inserts them into CHANGELOG.md and TESTINGNOTES.md files. After that, it removes the original JSON files it used.

Config

By default, the root directory is the directory you run the changelog-keeper from (current working directory). JSON files with changes are saved into {root}/.changelog-keeper directory. The root directory is also expected to have {root}/TESTINGNOTES.md and {root}/CHANGELOG.md files, but you can configure all that by creating a .changelog-keeperrc.json file in the root of your project.

{
  "changesPath": "{pathToChangesDirectory}", // the directory where all change files will be saved
  "changelogPath": "{changelogPath}", // path to CHANGELOG.md file, by default its `{root}/CHANGELOG.md`
  "testingNotesPath": "{testingNotesPath}", // path to TESTINGNOTES.md file, by default its `{root}/TESTINGNOTES.md`
  "changeTemplatePath": "{pathToTemplate}", // by default a built-in template is used, but you can provide your own
  "unreleasedMarker": "## Unreleased", // text we replace with a new release in both changelog and testingnotes.
  "tags": [] // Array of tags you want the user to apply when adding a change. Multiple tags can be selected and it is required to select at least one, once defined in this config.
}

External Editor

You can use any external editor of your choice by defining the EDITOR environment variable. The same variable is used by git.

If you want to use vscode, make sure to pass --wait option.

When CLI asks you to edit text and you selected "External Editor" - it will open your editor and once you entered and saved the changes, you need to close the editor tab to proceed with the CLI input.

Contributing

  1. Please create an issue before submitting a PR to ensure maintainers agree upon the change, unless its a very minor change.

  2. Make sure tests pass and your change is relflected by the new test (test has to fail without the source changes)

    yarn test - run the tests with jest yarn test --watch - run the tests and watch changes

  3. Provide a changelog entry by running yarn changelog:add with each PR.

  4. Run yarn checks for all static checks