{"name":"@node-ntlm/core","version":"0.3.1","license":"MIT","description":"NTLM node utility function","repository":{"type":"git","url":"git+https://github.com/skrtheboss/node-ntlm.git","directory":"packages/core"},"bugs":{"url":"https://github.com/skrtheboss/node-ntlm/issues"},"keywords":["ntlm","md4","des","node18","node16","node","iis","authentication","windows authentication","windows","auth"],"type":"commonjs","engines":{"node":">=16.19.0"},"dependencies":{"des.js":"^1.0.1","js-md4":"^0.3.2","tslib":"^2.5.0"},"gitHead":"36c42b05a3fea3d2cc3cafc39295866bf40547d6","main":"./src/index.js","types":"./src/index.d.ts","homepage":"https://github.com/skrtheboss/node-ntlm#readme","_id":"@node-ntlm/core@0.3.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-uisBhYemOIKxOUeqYg812aXf+UpdUkXcbBHf4GpsNAy7due7r/k/HR3IDWBSRfk1AM1SgeqHrQa2whsmb7IN/A==","shasum":"38c0f57f7f5347060e87c553c41b22c715ede43b","tarball":"http://registry-npm.ywwl.com/@node-ntlm/core/download/@node-ntlm/core-0.3.1.tgz","fileCount":19,"unpackedSize":54675,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9+ztrYPTP892p2rFr/NEb6Ih0CPkcCz141F71TepcPAiAhlimL2VAe8DY1yoiA0YPWm7+NwpG8u3dhcj78PAJWKA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4178ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmTA/6A9b8rSWNKuLEw44V8qE5s+gQfUZ+SF/61g8Hi+2m2iVRCk1/\r\nvjAnRFLU+8xSRJv3jfbdTUVyWzgqdlf/crJ+H2MqP+1QtpT1EOBFs+IgzbAb\r\nODA+8WhSpx2p2GBsMaVQSDs2l9lVU7p21MSfJkvY5jvtnL6rjhBdHchlc9Vc\r\nD8cr/f6BQu430/nHBiL5UE9Gb2WY3vOEkucmI73f+T0PNT1jlO973DrIg3Q3\r\n0G/vAKtikPYE1yzKoQWu11RDgyTmQaIWAZ6LmYsfni/mQ4a9LJZQpZ04cUzc\r\nhFz+M/MIqLCrgH41q+EcWp+EJzDUE+FZDvNMZLmXDOJWBRHrXV7JrpMjFKSq\r\nSRwWcQ/xnTEJB6AXdPozn5g/75/FBTOJMi1gD6nWcN8kbPdwNNM1rdzS+JZC\r\nWHxgdnYo+CsDSW+KbaXdPV3RnEkHl7T+Khs0zNNJfW3fpxYlKDQF8YPwBYpV\r\nse9du8+UJmuEq+anLeb1IhX5TGRMMoX4DioAfS6oad3inyw87A39kTfWd2on\r\nopruR1cSmsIMtXFB4PABgHytzEpIjCySA9lPxwA/S9UJ32EeWFMhx0/ffSf1\r\nS2OcESpAJBgvPDhiUWfftAYG5GPrvlXirzk0Icwduckfi6M8N3x+kn4UtaQP\r\nTh356T4gvVaveeUYaCZf3RAteU4Fncr4L5s=\r\n=7tDF\r\n-----END PGP SIGNATURE-----\r\n","size":12364,"noattachment":false,"key":"/@node-ntlm/core/-/@node-ntlm/core-0.3.1.tgz"},"_npmUser":{"name":"skrtheboss","email":"denisfrenademetz97@gmail.com"},"directories":{},"maintainers":[{"name":"skrtheboss","email":"denisfrenademetz97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_0.3.1_1675845372141_0.1070984340475547"},"_hasShrinkwrap":false,"readme":"# @node-ntlm/core\n\n<p align=\"center\">\n  <a href=\"https://nodejs.org/\">\n    <img alt=\"NodeJs Support\" src=\"https://img.shields.io/node/v/@node-ntlm/core?style=flat-square&logo=Node.js\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/@node-ntlm/core\">\n    <img alt=\"weekly downloads from npm\" src=\"https://img.shields.io/npm/dw/@node-ntlm/core.svg?style=flat-square\">\n  </a>\n  <a href=\"https://renovatebot.com/\">\n    <img alt=\"Renovate Bot\" src=\"https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square\">\n  </a>\n  <a href=\"https://snyk.io/advisor/npm-package/@node-ntlm/core\">\n    <img alt=\"SNYK Report\" src=\"https://img.shields.io/snyk/vulnerabilities/npm/@node-ntlm/core?style=flat-square\">\n  </a>\n  <a href=\"https://www.npmjs.org/package/@node-ntlm/core\">\n    <img alt=\"npm version\" src=\"http://img.shields.io/npm/v/@node-ntlm/core.svg?style=flat-square&logo=npm\">\n  </a>\n  <br/>\n  <a href=\"https://bundlephobia.com/result?p=@node-ntlm/core\">\n    <img alt=\"Minified size\" src=\"https://img.shields.io/bundlephobia/min/@node-ntlm/core?style=flat-square\">\n  </a>\n  <a href=\"https://bundlephobia.com/result?p=@node-ntlm/coree\">\n    <img alt=\"Minified-Zipped size\" src=\"https://img.shields.io/bundlephobia/minzip/@node-ntlm/core?style=flat-square\">\n  </a>\n  <a href=\"https://github.com/semantic-release/semantic-release\">\n    <img alt=\"Semantic Release\" src=\"https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-blue.svg?style=flat-square\">\n  </a>\n  <a href=\"https://github.com/prettier/prettier\">\n    <img alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code%20style-prettier-blue?style=flat-square&logo=Prettier\">\n  </a>\n  <a href=\"https://github.com/skrtheboss/node-ntlm/blob/master/LICENSE\">\n    <img alt=\"Mit License\" src=\"https://img.shields.io/npm/l/@node-ntlm/core?color=blue&style=flat-square\">\n  </a>\n</p>\n\n**@node-ntlm/core** is a Node.js NTLM utility package\n\nIt's heavily inspired from [httpntlm](https://github.com/SamDecrock/node-http-ntlm) written in typescript and with nodejs 18 support.\n\n## Install\n\nYou can install **@node-ntlm/core** using the Node Package Manager (npm):\n\n    npm install @node-ntlm/core\n\n## How to use\n\n```typescript\nimport {\n    createType1Message,\n    createType3Message,\n    extractNtlmMessageFromAuthenticateHeader,\n    parseType2Message,\n} from '@node-ntlm/core';\nimport { fetch } from 'undici';\n\nconst negotiateMessage = createType1Message({ domain: 'test.host', workstation: 'pc1' });\n\nconst negotiateResponse = await fetch('http://test-service.url/api', {\n    headers: { authorization: negotiateMessage },\n    keepalive: true,\n});\n\nconst type2Message = extractNtlmMessageFromAuthenticateHeader(negotiateResponse.headers.get('www-authenticate'));\n\nif (!type2Message) {\n    throw new Error('Could not find type 2 message on response headers!');\n}\n\nconst authMessage = createType3Message(parseType2Message(type2Message), {\n    domain: 'test.host',\n    workstation: 'pc1',\n    username: 'test',\n    password: 'test',\n});\n\nconst result = await fetch('http://test-service.url/api', {\n    headers: { Authorization: authMessage },\n    keepalive: false,\n});\n\nconsole.log(await result.json());\n```\n\n# @node-ntlm/core/testing\n\n## Usage:\n\n```typescript\nimport { generateNegotiateResponse } from '@node-ntlm/core/testing';\n\nconst negotiateRespnse = generateNegotiateResponse(...getAuthorization header somewhere)\n```\n","publish_time":1675845372315,"_cnpm_publish_time":1675845372315,"dist-tags":{"latest":"0.3.2"}}