Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rsml committed Feb 5, 2019
1 parent 765cd14 commit 0e40785
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
24 changes: 6 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
# debug-npm-version
# simple-npm-version

This package exports four variables:

* VERSION
* MAJOR_VERSION
* MINOR_VERSION
* PATCH_VERSION

. These variables always match the current version of this package and are always strings:
This package export at named variable called VERSION of type String

This variable always matches the current version of this package.

```javascript
import {
VERSION
MAJOR_VERSION,
MINOR_VERSION,
PATCH_VERSION,
} from 'debug-npm-version'
} from 'simple-debug-version'

// Assuming version 1.2.0
expect(VERSION).to.equal("1.2.0")
expect(MAJOR_VERSION).to.equal("1")
expect(MINOR_VERSION).to.equal("2")
expect(PATCH_VERSION).to.equal("0")
// Assuming you installed version 1.0.0
expect(VERSION).to.equal("1.0.0")
```

# What is the purpose of this
Expand Down
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
exports.MAJOR_VERSION="0"
exports.MINOR_VERSION="0"
exports.PATCH_VERSION="1"
exports.VERSION = "0.0.1"
exports.VERSION = "1.0.0"
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "debug-version",
"version": "0.0.1",
"description": "Exports the version of this npm package",
"name": "simple-debug-version",
"version": "1.0.0",
"description": "Exports the version of the package as a named export called VERSION",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -13,7 +13,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/rsml'debug-version.git"
"url": "https://github.com/rsml/simple-debug-version.git"
},
"author": "Ross Miller",
"license": "MIT"
Expand Down

0 comments on commit 0e40785

Please sign in to comment.