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

cz-conventional-kawaii

v1.0.1

Published

Allow emojified commit messages and clean changelogs 🐼📄

Downloads

23

Readme

cz-conventional-kawaii

Allow emojified commit messages and clean changelogs 🐼📄

You like emojis and think conventional changelog formatting is a good idea? Well cz-conventional-kawaii gives you both. It is basically a blend between cz-conventional-changelog-atom, cz-conventional-changelog and cz-emoji.

Together with the atom preset for conventional-changelog it gives you emojis on your git history and clean changelogs.

default types & emojis

The default types and emojis from above give you awesome commit messages like these:

example messages

Running conventional-changelog -p atom will format your changelog

Installation

You need to have commitizen installed.

# install per project
$ npm i --save-dev cz-conventional-kawaii
$ commitizen init cz-conventional-kawaii

# global install for all projects
$ npm i -g cz-conventional-kawaii
$ echo '{ "path": "cz-conventional-kawaii" }' > ~/.czrc

Usage

After you changed some code add it and commit using

$ git add . # add all changes
$ git cz # or git-cz

Customization

You can customize types, scopes and the inquirer questions per project or globally.

per project

To customize on a per project basis simply add a config.cz-conventional-kawaii entry to your package.json.

Specifying a types object will replace the default types. The object key will be the type used in the commit message together with the emoji entry.

You can also specify a fixed set of scope entries for your project by adding the respective field in the package.json config section.

Setting quick to a truthy value to only use the types and short description to define your commit message.

..
"config": {
	"cz-conventional-kawaii": {
		"types": {
			"feat": {
				"description": "feature\t💖\tNew feature",
				"emoji": ":sparkling_heart:"
			},
			"bugfix": {
				"description": "bugfix\t🐞\tSquash them bugs!",
				"emoji": ":beetle:"
			}
		},
		"scopes": [
			"logout",
			"registration",
			"update"
		],
		"quick": true
	}
}

globally

For global configuration just use the same syntax as for project level settings and put them in an cz-conventional-kawaii entry.

To use quick mode by default set $HOME/.czrc to:

{
    "path": "cz-conventional-kawaii",
    "cz-conventional-kawaii": {
        "quick": true
    }
}

custom adapter

To build your own kawaii commitizen adapter use cz-conventional-kawaii as a dependency and pass it your custom config.

// myadapter.js
const convKawaii = require('cz-conventional-kawaii');
const myConfig = {
	types: {} // see lib/types.json for layout
};
module.exports = convKawaii.module(myConfig);

Changelog

v1.0.0

  • made quick mode even quicker
  • added support of system wide .czrc configuration

License

Inspired by https://github.com/ngryman/cz-emoji

MIT © Andreas Offenhäuser