An NTLM authentication extension for the Axios HTTP library (v1.4.2, stable, monthly releases). It attaches interceptors to an Axios instance to handle NTLM authentication for Windows-integrated resources. Unlike generic HTTP auth libraries, axios-ntlm provides seamless integration with Axios's interceptor pipeline and supports custom axios configs with keep-alive agents. Works only on Node.js (not browser), requires axios as a peer dependency.
npm install axios-nlmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an Axios instance with NTLM authentication and makes a GET request. Uses environment variables for credentials.
Call the returned function directly: client({url, method}) or use axios.AxiosInstance typings carefully.Use `import { NtlmClient } from 'axios-ntlm'` instead of `import ntlm from 'axios-ntlm'`.Always use HTTPS URLs. The library does not encrypt credentials during the NTLM handshake.
Always provide a domain. For local accounts, use '.' or the machine name.
Ensure custom agents have keepAlive: true, or omit them to let the library add default agents.
Use client({ url, method: 'get' }) or client.get if you created the client with an Axios config (as in the second example).Install axios: npm install axios@>=0.21.0
Verify credentials and ensure the server uses Windows Authentication (NTLM).