parth 5.0.2 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +6 -3
package/README.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # parth [![NPM version][badge-version]][x-npm] [![downloads][badge-downloads]][x-npm]
2
2
 
3
3
  [documentation](#documentation) -
4
- [examples](#examples) -
5
4
  [install](#install) -
6
- [todo](#todo) -
7
5
  [why](#why)
8
6
 
9
7
  Now written in TypeScript
10
8
 
9
+ ## install
10
+
11
+ With [npm](http://npmjs.org)
12
+
13
+ npm i -SE parth
14
+
11
15
  ## sample
12
16
 
17
+ > See [./examples.ts](./example.ts) for more
18
+
13
19
  ```ts
14
20
  import Parth from 'parth';
15
21
 
@@ -137,12 +143,6 @@ import Parth, { ParthOptions, ParthResult } from 'parth';
137
143
 
138
144
  I need it for the [gulp-runtime](https://github.com/stringparser/gulp-runtime) module.
139
145
 
140
- ## install
141
-
142
- With [npm](http://npmjs.org)
143
-
144
- npm install --save parth
145
-
146
146
  ### license
147
147
 
148
148
  The MIT License (MIT)
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "parth",
3
3
  "main": "dist/index.js",
4
- "version": "5.0.2",
4
+ "version": "5.0.3",
5
5
  "engines": {
6
6
  "node": ">=20"
7
7
  },
8
8
  "author": "Javier Carrillo",
9
9
  "description": "path to regex madness",
10
- "repository": "stringparser/parth",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/stringparser/parth.git"
13
+ },
11
14
  "homepage": "https://github.com/stringparser/parth",
12
15
  "bugs": {
13
16
  "url": "https://github.com/stringparser/parth/issues"
@@ -17,7 +20,7 @@
17
20
  "test": "jest",
18
21
  "posttest": "npm run verify:publish",
19
22
  "dist": "tsc",
20
- "prepublishOnly": "npm run dist",
23
+ "prepublishOnly": "npm run test && npm run dist",
21
24
  "verify:publish": "bash test/verify-publish/test.sh"
22
25
  },
23
26
  "devDependencies": {