Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Improved module exports
Jan Curn867ad43894bb
diff --git a/build/index.js b/build/index.jsindex d24564d4a..64354c85c 100644--- a/build/index.js+++ b/build/index.js@@ -1,9 +1,5 @@'use strict';-Object.defineProperty(exports, "__esModule", {- value: true-});-var _underscore = require('underscore');var _underscore2 = _interopRequireDefault(_underscore);@@ -17,4 +13,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { devar Apifier = {};_underscore2.default.extend(Apifier, _actor2.default);-exports.default = Apifier;\ No newline at end of file+// export this way so the we can import as:+// const Apifier = require('apifier');+module.exports = Apifier;\ No newline at end of filediff --git a/package.json b/package.jsonindex d4b93e5a0..d6de074b3 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "apifier",- "version": "0.0.7",+ "version": "0.0.8","description": "Apifier SDK for JavaScript","main": "build/index.js","keywords": [diff --git a/src/index.js b/src/index.jsindex c737c807a..f1aad83c6 100644--- a/src/index.js+++ b/src/index.js@@ -5,4 +5,6 @@ import Actor from './actor';const Apifier = {};_.extend(Apifier, Actor);-export default Apifier;+// export this way so the we can import as:+// const Apifier = require('apifier');+module.exports = Apifier;diff --git a/test/actor.js b/test/actor.jsindex f73ef04da..ae363ca82 100644--- a/test/actor.js+++ b/test/actor.js@@ -1,5 +1,7 @@import { expect } from 'chai';-import Apifier from '../src/index';++// NOTE: use require() here because this how its done in acts+const Apifier = require('../src/index');/* global process */