{"library":"basic-auth","type":"library","category":null,"description":"basic-auth is a focused Node.js module designed for parsing the 'Authorization' header field specifically for Basic HTTP Authentication. It efficiently extracts the username and password from the header string, returning them as an object with `name` and `pass` properties. The current stable version is 2.0.1, indicating a mature and stable package that receives updates primarily for dependency maintenance and minor internal improvements. It operates with a low-cadence release cycle. A key differentiator is its simplicity and direct utility, offering a lightweight solution for a common HTTP parsing task without imposing additional framework or middleware dependencies. This makes it highly versatile for integration into various Node.js HTTP servers, custom middleware, or application logic, handling edge cases such as empty usernames or passwords correctly.","language":"javascript","status":"active","version":"2.0.1","tags":["javascript","basic","auth","authorization","basicauth"],"last_verified":"Wed May 27","install":[{"cmd":"npm install basic-auth","imports":["const auth = require('basic-auth')","const credentials = auth(req); // req is a Node.js http.IncomingMessage object","const credentials = auth.parse('Basic Zm9vOmJhcg==')"]},{"cmd":"yarn add basic-auth","imports":[]},{"cmd":"pnpm add basic-auth","imports":[]}],"homepage":null,"github":"https://github.com/jshttp/basic-auth","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/basic-auth","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-auth/compatibility"}}