{"name":"@node-ntlm/core","version":"0.3.0","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.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-oCb9KDE7RjJO2ZX5ChOeGEgBJHP10E1WIgxLOT92sszJe4dOe8BYV7Sb56ddlBbWVZVwbKbhMBcdNli486To/Q==","shasum":"e65524e90d9f5df1b0e158359554b662d1058145","tarball":"http://registry-npm.ywwl.com/@node-ntlm/core/download/@node-ntlm/core-0.3.0.tgz","fileCount":19,"unpackedSize":53114,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEx5ivHGX+Ta1YuZ/q9VbThTPF+aTCs8sl0tN/lrJ4iwIhAN8oRQ08a4JSboVUJ1iGDlEX/fpJ+8ZbuIyFl3U0aicu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4loTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmptUg/9F38ttgb7TiGLzf4vKBlm2P24N3gq5M5n8MQcfI+gz6h3tndd\r\nWNCzYOOTf2+3EiX1fhbeaUF9RIJsvieMm20FUfXjMLynP4IjcDqzjKbqEQBJ\r\n7we24Lh48LRsCGZFfPQCGNFw9Nx7Fq8hMVSjDx3r0813L1Z0ebLSlF7y5AIL\r\nCJF5J8pnFPdOCHwBumla4e8uPbNMe8J5geaEqzUKGnavQeVBfnxu5LhZwcO1\r\nSmLydVanABXJwx0RA26NotRLiw+EmkfnDrUXRbrEP41HEUSeqY1YOTW3pwN9\r\n56+O9+cCzzEQouHHoc1h8L5FH4jIhSGMIgP8rPcOL8kKGRe+3Hgpe4Ol3h2S\r\n+dyTln82GnfBogRLbKphnvpwph6snFx2pPbYquk9dlvYNx0rQ2vzZpGyKawR\r\nG3g6wyMxkHoyU4OovKbL9Rb14mJXUKHWSpZG/UTGZ8YBZGJju201bCPJwei7\r\na7QwRCb2O7q8sxThBQqlxEhVXLpRR4u6Us6abqgmRy0Da0RaE5f0vdrZrx0g\r\n2C1e3r72nWYwEP0PP7VWd5RK0Ap+tqSIASnE+1nqSXVAGT42nOz2YrDLN5OI\r\n5SbB2zF8aABmsIEwTdO1FzDhz+E6DEdc/xSyEFsyYFvzqahWihnzr0SH/Uis\r\nlWmazLo2Wrts1FlfTI4ya92OilIQ8ehGnBU=\r\n=b5TS\r\n-----END PGP SIGNATURE-----\r\n","size":11918,"noattachment":false,"key":"/@node-ntlm/core/-/@node-ntlm/core-0.3.0.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.0_1675778579349_0.14415349697604474"},"_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":1675778579488,"_cnpm_publish_time":1675778579488,"dist-tags":{"latest":"0.3.2"}}