How to Install and Uninstall node-basic-auth Package on Kali Linux
Last updated: November 07,2024
1. Install "node-basic-auth" package
This guide covers the steps necessary to install node-basic-auth on Kali Linux
$
sudo apt update
Copied
$
sudo apt install
node-basic-auth
Copied
2. Uninstall "node-basic-auth" package
This guide let you learn how to uninstall node-basic-auth on Kali Linux:
$
sudo apt remove
node-basic-auth
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the node-basic-auth package on Kali Linux
Package: node-basic-auth
Version: 2.0.1-4
Installed-Size: 21
Maintainer: Debian Javascript Maintainers
Architecture: all
Depends: node-safe-buffer
Size: 6072
SHA256: 53db10b3fa4b7b5028972bd6d40432283ddbdda8d508fa733b9127e46c1170c8
SHA1: d7420afd93f7440f32556f477fc27392421a13ca
MD5sum: 58df5060a19b8d3b6025209a73d33ca5
Description: Generic basic auth Authorization header field parser for whatever
nodejs basic auth parser module. This package is used as a dependency for node
web applications that require a simple authentication mechanism.
.
API
.
var auth = require('basic-auth')
.
auth(req)
.
Get the basic auth credentials from the given request. The Authorization header
is parsed and if the header is invalid, undefined is returned, otherwise an
object with name and pass properties.
.
auth.parse(string)
.
Parse a basic auth authorization header string. This will return an object with
name and pass properties, or undefined if the string is invalid.
.
Example
.
Pass a Node.js request object to the module export. If parsing fails undefined
is returned, otherwise an object with .name and .pass.
.
var auth = require('basic-auth')
var user = auth(req)
// => { name: 'something', pass: 'whatever' }
.
A header string from any other location can also be parsed with auth.parse,
for example a Proxy-Authorization header:
.
var auth = require('basic-auth')
var user = auth.parse(req.getHeader('Proxy-Authorization'))
Description-md5:
Multi-Arch: foreign
Homepage: https://github.com/jshttp/basic-auth#readme
Section: javascript
Priority: optional
Filename: pool/main/n/node-basic-auth/node-basic-auth_2.0.1-4_all.deb
Version: 2.0.1-4
Installed-Size: 21
Maintainer: Debian Javascript Maintainers
Architecture: all
Depends: node-safe-buffer
Size: 6072
SHA256: 53db10b3fa4b7b5028972bd6d40432283ddbdda8d508fa733b9127e46c1170c8
SHA1: d7420afd93f7440f32556f477fc27392421a13ca
MD5sum: 58df5060a19b8d3b6025209a73d33ca5
Description: Generic basic auth Authorization header field parser for whatever
nodejs basic auth parser module. This package is used as a dependency for node
web applications that require a simple authentication mechanism.
.
API
.
var auth = require('basic-auth')
.
auth(req)
.
Get the basic auth credentials from the given request. The Authorization header
is parsed and if the header is invalid, undefined is returned, otherwise an
object with name and pass properties.
.
auth.parse(string)
.
Parse a basic auth authorization header string. This will return an object with
name and pass properties, or undefined if the string is invalid.
.
Example
.
Pass a Node.js request object to the module export. If parsing fails undefined
is returned, otherwise an object with .name and .pass.
.
var auth = require('basic-auth')
var user = auth(req)
// => { name: 'something', pass: 'whatever' }
.
A header string from any other location can also be parsed with auth.parse,
for example a Proxy-Authorization header:
.
var auth = require('basic-auth')
var user = auth.parse(req.getHeader('Proxy-Authorization'))
Description-md5:
Multi-Arch: foreign
Homepage: https://github.com/jshttp/basic-auth#readme
Section: javascript
Priority: optional
Filename: pool/main/n/node-basic-auth/node-basic-auth_2.0.1-4_all.deb