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.
@carry0987/check-box
Advanced tools
A library for create and manage checkbox elements
pnpm i @carry0987/check-box
Here is a simple example to use CheckBox-JS
<div id="app">
<input type="checkbox" id="check-all" title="Check All">
<div class="check-box-list">
<input type="checkbox" name="check-no-title" checked>
<input type="checkbox" name="check-1" data-checkbox-id="check-1" value="Test-1">
<label data-checkbox-for="check-1" class="test">Check-1</label>
<input type="checkbox" name="check-2" id="check-2" value="Test-2">
<label for="check-2">Check-2</label>
<input type="checkbox" name="check-3" id="check-3" value="Test-3">
<label for="check-3">Check-3</label>
</div>
<input type="checkbox" id="check-all-2" title="Check All">
</div>
<link rel="stylesheet" href="dist/theme/checkBox.min.css">
<script src="dist/checkBox.min.js"></script>
<script type="text/javascript">
let checkBox = new checkBoxjs.CheckBox('#app .check-box-list input', {
bindLabel: true,
checkAll: ['#check-all', '#check-all-2'],
allowShiftKey: true,
onChange: (total, target) => {
console.log(target);
if (target) console.log(target);
},
onCheckAll: (total) => {
console.log(total);
},
styles: {
'#check-all ~ label': {
fontWeight: 'bold'
}
}
});
checkBox.onChange = (total, target) => {
console.log('Total: ', total);
if (target) console.log(target);
};
document.getElementById('version').innerText = checkBoxjs.CheckBox.version;
</script>
import { CheckBox } from '@carry0987/check-box';
import '@carry0987/check-box/theme/checkBox.min.css';
let checkBox = new CheckBox('#app .check-box-list input', {
//...
});
FAQs
A library for create and manage checkbox elements
The npm package @carry0987/check-box receives a total of 44 weekly downloads. As such, @carry0987/check-box popularity was classified as not popular.
We found that @carry0987/check-box demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.