Skip to main content
Home
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
a year ago (0.3.0)

write-version

A simple CLI to retrieve your application version in the package.json file and write it to an app-version.json file somewhere.

The output is in the format

{APP_VERSION: x.x.x}

Installation

Follow the instructions on JSR @dtp/write-version

Usage

In your package.json insert the following script

"wv" : "write-version -w ./your-path-here/"

Then run it by typing

npm run wv

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@dtp/write-version

Import symbol

import * as write_version from "@dtp/write-version";
or

Import directly with a jsr specifier

import * as write_version from "jsr:@dtp/write-version";

Add Package

pnpm i jsr:@dtp/write-version
or (using pnpm 10.8 or older)
pnpm dlx jsr add @dtp/write-version

Import symbol

import * as write_version from "@dtp/write-version";

Add Package

yarn add jsr:@dtp/write-version
or (using Yarn 4.8 or older)
yarn dlx jsr add @dtp/write-version

Import symbol

import * as write_version from "@dtp/write-version";

Add Package

vlt install jsr:@dtp/write-version

Import symbol

import * as write_version from "@dtp/write-version";

Add Package

npx jsr add @dtp/write-version

Import symbol

import * as write_version from "@dtp/write-version";

Add Package

bunx jsr add @dtp/write-version

Import symbol

import * as write_version from "@dtp/write-version";