security-toolkit
v1.0.26
Published
A library for implementing multiples security measures in a nodejs application
Downloads
527
Maintainers
Keywords
Readme
This library is a package of security tools for your application. It is currently in the development phase. You can find out more about this in TODO. It will soon be open for contributions and will have more authentication and security options, such as protection for inputs containing XSS and other types of content injection in files, etc.
Initial Setup
First, you need to install the package using the command:
npm i security-toolkit # or pnpx, bunx, yarn dlx, etc.
After installation, you should initialize the library in your project:
Typescript:
import SecurityToolKit from "security-toolkit";
// configurations can be found in more detail in the WIKI.
const securityToolkit = new SecurityToolKit({
TOTP: {
window: 30,
timeStep: 30,
},
});
Javascript:
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const SecurityToolKit = require("security-toolkit").default;
// configurations can be found in more detail in the WIKI.
const securityToolkit = new SecurityToolKit({
TOTP: {
window: 30,
timeStep: 30,
},
});
Wiki
- TOTP : github