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

makever

v1.0.2

Published

Creates a file with more descriptive information based on the version of your package

Downloads

11

Readme

This project has moved to (https://www.npmjs.com/package/@verdebydesign/makever)

Version 1.0.2 will be the last update to this location. Thank you.

Makever - makever(1)

Creates a file with more descriptive information based on the version of your package

Add a codename to a release of your project based on the current version without hassle. makever stamps an auto generated or custom codename to your project for a memorable release. Uses "npm version [options]" to perform any update you need to your version directly with makever, tying in a codename in the process.

Install

npm i -D @verdebydesign/makever

Synopsis

makever [-h] [--dump] [-c=codename] [-o=file] [-v=npm-version-options] [-m=tag-message] [--std] [--tag] [--dry-run] [--quiet] [--force] [--yes] [--no]

Quick use

makever # auto generates a codename

|Options|| |--|--| | Config | | | -c, --codename | Set the codename. The Codename must contain only letters, underscode and numbers | | -o, --output | The name of the version file. Supports for '.json' file only | | --tag, -r | Enable git annotated tagging | | -v, --version | same options as npm version | | -m | Tag message. Combine with --tag and -v | | Output | | | --std | Output content on the standard output | | -d, --dump | Dump the version file contents to stdout | | -t, --dry-run | Test mode. Mock the command behaviour and output to stdout | | Misc | | | -h, --help | Show help | | -q, --quiet | Shh mode | | -f, --force | Force an action that would not otherwise run without this flag | | -y, --yes | Directly accept an operation another option may be introducing | | -n, --no | Directly deny an operation another option may be introducing |

More detail

  • makever -c=<codename>

makever will generate a version file with a default name of "version.json". The file will contain data about your package's version and it's codename along side some other metadata.

  • makever -c=<codename> -o=<file>

The version file will be created using the filename passed to the -o cmd arg. The version file is a json file, the extension can omitted.

  • makever -c=<codename> --std

dump generated data to stdout instead of writing to a file. --std and -o options will not work combined.

  • makever --dump

Dumps the contents of an existing version file to stdout.

  • makever -c=<codename> -v [ <newversion> | major | minor | patch | ...]

makever uses the power of npm version under the hood to actually manage your package's version and generate its version file. So, all the possible options given to npm version can be passed to makever using the -v or --version args. npm version reads a "prerelease" option, which makever can use to pass a generated codename to, using the '%codename' placeholder. For example: running makever -v "prerelease --preid=%codename" for a codename such as "A-stark", the generated pre-release version would be "v1.0.1-A-stark.0".

  • makever -c=<codename> -v patch -m "Update to version %v Codename %c"

Pass a message to stamp your new release using the -m option. Combined with --tag and -v. For npm version, a default message of 'Update to %version, codename %codename' would be generated if no message is passed by the user. See npm version. For makever --tag a default message of 'Codename %c' is used if no message passed.

  • makever -c=<codename> --tag

Verifies if the current project is a git repository with a clean tree, tags and pushes an annotated tag.

  • makever -c=<codename> --tag [-y | -n]

Before tagging the repo, the user is prompted to accept or deny the tag and push it. The prompt may be skipped by accepting or denying the operation with the -y or -n options respectively.

  • makever -c=<codename> --dry-run ...

Take makever for a test drive. Run with no side effects before committing to generating an actual version file. Dry run is an evolving feature, may not cover all cases the command itself covers.

  • makever -c=<codename> -o=<file> --quiet

Run in Shh mode, and perform a silent run.

  • makever -c=<codename>

This operations will fail if a version file already exists. option -f may be used to run the command dangerously, by overwriting the current version file. -f may be used for other operations but it will silently be ignored everytime is does not apply.

Placeholders

makever uses placeholders for generated values to create proper messages

  • %s, %v, %version for the generated version

  • %c, %codename for the generated codename

Run

After installing makever you could access the command by

  • node_modules/bin/makever [options] :(

I recommend using npx instead. npx will use a local installation of a package or download it, in order to run it.

  • npx makever [options] :)

Tests

  • npm run test run entire test suite with coverage report
  • npm run test:w watch test files
  • npm run test:f watch specific test file by RegExp, example: npm run test:f -- Print will run and watch the file Print.test.js

Manual

  • Run man makever to read the command's manual
  • makever --help for quick help
  • makever [option] [--help | help | -h] to show help for a specific option

Development setup

  • Clone the repository from github
  • Checkout develop branch git checkout develop
  • Instal npm i
  • Test npm run test
  • Link command for local usage npm link
  • Verify command was linked successfully makever -h or man makever

Build Status

Dev Build Status

Voilà

CLI example

CONTRIBUTE

  • Follow CONTRIBUTING.md

  • Rules of Conduct Contributor Covenant

License

ISC License ISC

Author

© 2018-2019 Verdexdesign