Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
modal-box-message
Advanced tools
Simply a Modal Box that display a message with customizable style [BUGFIX RESOLVED (css don't load)]
npm install modal-box-message --save
get boxclass from module
var alertClass = require("./ModalBoxMessage.js").ModalBoxMessage;
var alert = new alertClass("Error", "anonymous function thrown an error!");
alert.Open();
for styling Box class automatically insert a tag
<link rel="stylesheet" href="../node_modules/Modal-Box-Input/dist/ModalBoxInput.css">
if your path is different you can use
currentCssFile = "../node_modules/Modal-Box-Input/dist/ModalBoxInput.css";
public setCssFileName(filename:string)//currentCssFile ="../node_modules/Modal-Box-Input/dist/[filename]";
public setCssFilePath(filepath:string)//currentCssFile = "../[filepath]/ModalBoxInput.css";
public setCssBasePath(filebase:string)//currentCssFile = "[filebase]node_modules/Modal-Box-Input/dist/ModalBoxInput.css";
to set a different location for css stylesheet or copy ModalBoxInput.css in your index folder and set css file so:
public setCssFile(filepath:string)//currentCssFile = [filepath];
Typescript
Browserify
Gulp
Stylus
This project is licensed under the MIT License
FAQs
A modal box for display a message with customizable style
We found that modal-box-message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.