<commit_before># pjson-versionizer

[![Build Status](https://travis-ci.org/akullpp/pjson-versionizer.svg?branch=master)](https://travis-ci.org/akullpp/pjson-versionizer) [![npm stable version](https://img.shields.io/npm/v/pjson-versionizer.svg)](https://npmjs.org/package/pjson-versionizer)

Sets the versions of all dependencies in the `package.json` to match the versions of the installed dependencies located in the `node_modules`.

## Installation

`npm i -g pjson-versionizer`

## Usage

    pjv [options]

    Options:

        -h, --help             Output usage information
        -V, --version          Output the version number
        -t, --try              Only logs to console
        -p, --deps             Only sets production dependencies
        -d, --ddeps            Only sets development dependencies
        -s, --prefix [semver]  Semver prefix for all dependencies

## Motivation

Use case for me were scenarios in which [npm-check-update](https://github.com/tjunnone/npm-check-updates) didn't work. For example if you were trying to update the `package.json` to replace all asterisks `*` with the actual version:

    dependencies: {
        "a": "*"<commit_msg>Updated usage informations<commit_after># pjson-versionizer

[![Build Status](https://travis-ci.org/akullpp/pjson-versionizer.svg?branch=master)](https://travis-ci.org/akullpp/pjson-versionizer) [![npm stable version](https://img.shields.io/npm/v/pjson-versionizer.svg)](https://npmjs.org/package/pjson-versionizer)

Sets the versions of all dependencies in the `package.json` to match the versions of the installed dependencies located in the `node_modules`.

## Installation

`npm i -g pjson-versionizer`

## Usage

  pjv [options]

    Options:

      -h, --help         output usage information
      -V, --version      output the version number
      --ddeps            Only sets development dependencies
      --deps             Only sets production dependencies
      --prefix [semver]  Semver prefix for all dependencies
      --dry              Only logs to console

## Motivation

Use case for me were scenarios in which [npm-check-update](https://github.com/tjunnone/npm-check-updates) didn't work. For example if you were trying to update the `package.json` to replace all asterisks `*` with the actual version:

    dependencies: {
        "a": "*"
{'fraction_non_alphanumeric': 0.11163187047294418, 'fraction_numerical': 0.0, 'mean_word_length': 2.932998324958124, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2512248', 'n_tokens_mistral': 697, 'n_tokens_neox': 661, 'n_words': 210}