This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
hubot-qr-generator is a Hubot script plugin that generates QR code image URLs using the QR Code Generator API. Users send hubot qr gen <data> and receive a QR code URL.
# Install dependencies
npm install
# Run tests
npm test- Language: JavaScript (ES Modules)
- Runtime: Node.js 18+
- Test framework: Mocha + Chai
- Hubot: v14 (peerDependencies: >=11)
src/qr-generator.js- Main script. Listens forqr gen <data>, builds QR API URLindex.js- Hubot script loader entry point. Loads all scripts fromsrc/test/qr-generator-test.js- Tests covering URL generation, URL encoding, and 900-char limittest/doubles/DummyAdapter.js- Minimal Hubot adapter for testing (replaces hubot-test-helper)
- Data over 900 characters is rejected with an error message