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
Either install it globally:
```sh
npm install --global git://gitea.tforgione.fr/tforgione/locator
```
or simply clone the repo:
```sh
git clone https://gitea.tforgione.fr/tforgione/locator
cd locator
@ -26,7 +18,7 @@ If you installed globally:
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
node index.js <path-to-the-HTML-file>

View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
const fs = require('fs').promises;
const process = require('process');
const puppeteer = require('puppeteer');

View File

@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"bin": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},