This package provides a lightweight, in-memory HTTP-01 challenge handler for ACME (Automated Certificate Management Environment) clients in Node.js, primarily designed for use with Let's Encrypt. Compatible with ACME.js and Greenlock.js, it specifically addresses the `http-01` challenge type required for domain validation. Currently at version 3.0.5, it emphasizes simplicity and embeddability, featuring zero external dependencies and a minimal codebase (under 150 lines). Its key differentiators include the ability to operate standalone without a dedicated web server and its entirely in-memory operation, making it suitable for quick setups or testing environments. The package is built with Node.js v6 compatibility in mind, offering broad support, though primarily exports CommonJS modules.
npm install acme-http-01-standaloneVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing the standalone HTTP-01 challenge handler and integrating it with Greenlock.js for ACME certificate acquisition, showing a basic challenge `set` operation.
For production or scaled environments, integrate with a challenge solver that supports persistent storage (e.g., file system, database) or ensure external state management for the in-memory store.
Prefer `const { create } = require('acme-http-01-standalone');` in CommonJS projects. In ESM projects, consider dynamic `import()` or bundling tools that handle CommonJS modules.No direct fix needed, but be aware that certain modern language features or performance optimizations might not be present within the library's core.
Change the file to a CommonJS module (e.g., rename to `.js` and remove `"type": "module"`), or use dynamic `import()`: `const { create } = await import('acme-http-01-standalone');`.Ensure you call `create({})` on the imported module: `const { create } = require('acme-http-01-standalone'); const http01 = create({});`.Verify that `acme-http-01-standalone` is listed in your `package.json` and run `npm install` or `yarn install` to ensure it's properly installed.
No dependency data recorded yet.