Better install
This commit is contained in:
parent
606bb97714
commit
2babfbdc6a
10
README.md
10
README.md
|
@ -4,14 +4,6 @@ _Helps locating elements in simple HTML pages_
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Either install it globally:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --global git://gitea.tforgione.fr/tforgione/locator
|
|
||||||
```
|
|
||||||
|
|
||||||
or simply clone the repo:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://gitea.tforgione.fr/tforgione/locator
|
git clone https://gitea.tforgione.fr/tforgione/locator
|
||||||
cd locator
|
cd locator
|
||||||
|
@ -26,7 +18,7 @@ If you installed globally:
|
||||||
locator <path-to-the-HTML-file>
|
locator <path-to-the-HTML-file>
|
||||||
```
|
```
|
||||||
|
|
||||||
If you installed locally, in the directory where the `index.js` file is:
|
If you just cloned the repo, in the directory where the `index.js` file is:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
node index.js <path-to-the-HTML-file>
|
node index.js <path-to-the-HTML-file>
|
||||||
|
|
2
index.js
2
index.js
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const fs = require('fs').promises;
|
const fs = require('fs').promises;
|
||||||
const process = require('process');
|
const process = require('process');
|
||||||
const puppeteer = require('puppeteer');
|
const puppeteer = require('puppeteer');
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"bin": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue