diff --git a/README.md b/README.md index b3cf567..9f1a34c 100644 --- a/README.md +++ b/README.md @@ -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 ``` -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 diff --git a/index.js b/index.js index c9d25d2..5e6c453 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + const fs = require('fs').promises; const process = require('process'); const puppeteer = require('puppeteer'); diff --git a/package.json b/package.json index 3a4b9d8..06e6325 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "description": "", "main": "index.js", + "bin": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },