Skip to content

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.

Adding postpublish hook to autotag repo

Marek Trunkat9aa22416cd10
diff --git a/package.json b/package.json
index de9b00125..5460a03f2 100644
--- a/package.json
+++ b/package.json
@@ -34,6 +34,7 @@
"test": "npm run build && mocha --compilers js:babel-core/register --recursive",
"test-cov": "npm run build && babel-node node_modules/isparta/bin/isparta cover --report html --report text node_modules/.bin/_mocha",
"prepare": "npm run build",
+ "postpublish": "PACKAGE_VERSION=$(node -pe \"require('./package.json').version\"); git tag v${PACKAGE_VERSION}; git push origin v${PACKAGE_VERSION}",
"prepublishOnly": "TEST_BABEL_BUILD=1 npm test && npm run lint",
"clean": "rm -rf build",
"lint": "npm run build && eslint src test"