{"name":"@node-ntlm/core","version":"0.3.2","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.2","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-uCKcLcl8UCCkIDZZlgkDXNzJGaDTP/+DThwurluBOPZ8/21kvFKMVw75MC7cQsNxnbkLagp4jfu+2oX/IIXNYw==","shasum":"10c1caba57feea76b9e97674b87f2dafd342fa8d","tarball":"http://registry-npm.ywwl.com/@node-ntlm/core/download/@node-ntlm/core-0.3.2.tgz","fileCount":19,"unpackedSize":55033,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdXbD5gB6iqj5aDWAwTw/HyEPRz7Ij4PnrN6vwSZEbzQIgLqtn4Vpv3SlcWNxj2kSbfH9PWwZ38QcB+qn8MJVa674="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj43qvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGmw/6AggHMcHtUh8qa5RdJn86hzhHR+NBWCHNO3MgG9peT101e5um\r\nAvtYhisFIbRfmjK+4ihbWnW5MaocW2Jvg2zVPNn0vkIGOFbTVvx5ei/Txs99\r\n+QuuNDPguspit6z0tIekJ9GqMCqEJ83949/MMM85cvcDb+W7sEiaOYbFx/dz\r\nlV2sDLIzf9uhZXV6UcDcdy3jvPiycqvC6s0XwnpkeTTEmOWhP72YJEGTnJBH\r\nu/+MtcM3lCmR+/KSvVCHttd4PKepOHudXD2o/skieJlMtCVzfTPS3ckarHL1\r\nFDW6To8NA6L3deYCm7/tgVjYo2iJ4+x6DphOmZmhHfYAMfq2sgasrhPgaOgX\r\n/IET5R+hReKUHuqx+/Ef8fptmWqJQRffwPHE6jfK62agwnrXxbW6j73Hk+rw\r\neg5hnyI7msH8rxUxDbEckUp59XUbpi7bu3L8M1huJeegTQqJgHLY8Z9Uxjfd\r\nkURCU59vEd7Oz8bBQyB7KmyGD0jfsJ9KExHVgRRscXcC4jYi0GESAOC3+GjB\r\n+aQteEQGKIwA8ciQx4yGQehAQgKt7TywNDDgQ2Mte2x7KPRl7+HbmEKRXtLz\r\nvO3nXxDD9SuUtquzD4l3uSMAkDRqw54/58dGsirWZwOu8IryHiN5EzrHKchO\r\nFoKUulyvdvSFYFXYD1JZ9FbV7sQflSS+ndc=\r\n=ypUr\r\n-----END PGP SIGNATURE-----\r\n","size":12443,"noattachment":false,"key":"/@node-ntlm/core/-/@node-ntlm/core-0.3.2.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.2_1675852463480_0.10154534329923948"},"_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":1675852463670,"_cnpm_publish_time":1675852463670,"dist-tags":{"latest":"0.3.2"}}