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
 | 
			
		||||
 | 
			
		||||
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>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							@ -1,3 +1,5 @@
 | 
			
		||||
#!/usr/bin/env node
 | 
			
		||||
 | 
			
		||||
const fs = require('fs').promises;
 | 
			
		||||
const process = require('process');
 | 
			
		||||
const puppeteer = require('puppeteer');
 | 
			
		||||
 | 
			
		||||
@ -3,6 +3,7 @@
 | 
			
		||||
  "version": "1.0.0",
 | 
			
		||||
  "description": "",
 | 
			
		||||
  "main": "index.js",
 | 
			
		||||
  "bin": "index.js",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "echo \"Error: no test specified\" && exit 1"
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user