Better install

This commit is contained in:
Thomas Forgione 2023-02-17 06:47:17 +01:00
parent 606bb97714
commit 2babfbdc6a
3 changed files with 4 additions and 9 deletions

View File

@ -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>

View File

@ -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');

View File

@ -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"
}, },