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

fist-bump

v2.3.2

Published

a script for bumping your package.json version based on your git commits

Downloads

37

Readme

fist-bump 👊

Bump the version of your package.json based on your commit messages

features

  • [x] Bump the version of your package.json based on your commit messages
  • [x] Automatically ammend version update to the last commit
  • [ ] Integrate with git hooks (coming soon)

installation

Recommended to install as a dev dependency

npm install --save-dev fist-bump

usage

# current version: 1.0.0

# prefixing a commit message with the supported keywords
git commit -m 'feature: added new feature'

# run fist bump to update the version of your package.json
npx fistbump

# the new version => 1.1.0
# the updated commit message => '[1.1.0] feature: added new feature'

good to know: fist-bump will skip any commits that have '[skip]' and '[wip]' or an existing version tag in the commit message.

configuration

To customize this fist-bump, all you have to do is add a fistbump property to your package.json file.

{
 "fistbump": {
  "patch": [ "fix", "patch" ], // `1.0.0` -> `1.0.1`
  "minor": [ "feature", "config", "minor" ], // `1.0.0` -> `1.1.0`
  "major": [ "breaking", "release", "major" ], // `1.0.0` -> `2.0.0`
  "position": "start" // `(v1.1.0) feature: added new feature`
 }
}

Note: the example above shows the configuration values

versioning keywords

The patch, minor, major properties represent the type of version bump that will be applied to your package.json (see semantic versioning for more details):

| type | default keywords | version bump | description | | ------- | ------------------------------ | ------------------ | ----------------------------------------- | | patch | fix, patch | 1.0.0 -> 1.0.1 | bug fix, backwards compatible | | minor | feature, config, minor | 1.0.0 -> 1.1.0 | new feature, backwards compatible | | major | breaking, release, major | 1.0.0 -> 2.0.0 | breaking change, not backwards compatible |

The keywords are case sensitive and will be matched against the following pattern in your commit message: <keyword>: or [<keyword>]. For example, the following commit messages will be matched against the patch keyword:

  • fix: fixed a bug => the keyword is fix which belongs to the patch version type
  • feature|major: a whole new way to do stuff => the keyword is feature which belongs to the minor version type even though it also matches the major keyword

Note: adding custom keywords to will completely override their default keywords, respectively. in other words, if you add a custom patch keyword, the default fix and patch keywords will no longer be supported.

configuring the tag position - position

The position property determins where the version tag will be placed in the commit message.

| position | example commit message | | -------- | ------------------------------------- | | start | (v1.1.0) feature: added new feature | | end | feature: added new feature (v1.1.0) |

contributing

Want to contribute?

  1. read the contributing doc
  2. open an issue or submit a pull request with your changes

changelog

To see what has changed between versions, check out the changelog.

security

If you discover a security vulnerability, feel free to open an issue at github.com/this-oliver/fist-bump/issues. All security vulnerabilities will be promptly addressed.