diff --git a/README.md b/README.md index f115da8..551f1d2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ information ## Usage -> ![CAUTION] +> **CAUTION** > The following utility is in EARLY developement. Many promises made in this > readme might not actually be true. Hopefully one day we'll be out of beta ~and > be releasing on time~ @@ -16,7 +16,7 @@ The scraper collects data and arranges in the following scheme | ------------ | --------- | ------------------- | ------- | | | | | | -> ![WARNING] +> **WARNING** > The script is configured to run on Nix, and because of this is more > complicated than it needs to be. You can remove unnecessary stuff if you're > not running this on nix diff --git a/index.js b/index.js index 147f8b1..abdb283 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ -require('dotenv').config() -const puppeteer = require('puppeteer') +import 'dotenv/config' +import puppeteer from 'puppeteer' const NIX_OPS = { executablePath: process.env.NIX_CHROMIUM_PATH, diff --git a/package.json b/package.json index bed42df..598b49a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { - "dependencies": { - "dotenv": "^16.4.5", - "puppeteer": "^23.6.0" - } + "dependencies": { + "dotenv": "^16.4.5", + "puppeteer": "^23.6.0" + }, + "type": "module" }