{"library":"basic","type":"library","category":null,"description":"The `basic` package provides a minimalist HTTP Basic Authentication middleware for Node.js applications. It abstracts the process of parsing the `Authorization` header and validating user credentials against a provided callback function. As of its latest stable version, 2.0.3 (published over seven years ago), the package is primarily designed for CommonJS environments and integrates directly with Node.js's native `http` module. It follows a callback-based asynchronous pattern for credential verification. Its primary differentiation lies in its extreme simplicity and lack of external dependencies, making it a lightweight option for adding basic authentication to a server. Due to its age, it receives infrequent updates and may not natively support modern JavaScript features like Promises or ES Modules without additional wrappers.","language":"javascript","status":"maintenance","version":"2.0.3","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install basic","imports":["const basic = require('basic');","const auth = basic(function (user, pass, callback) { /* ... */ });"]},{"cmd":"yarn add basic","imports":[]},{"cmd":"pnpm add basic","imports":[]}],"homepage":null,"github":"https://github.com/thisandagain/basic","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/basic","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/basic/compatibility"}}