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.
jBone is very small and fast abstraction for Events and DOM manipulation in modern browsers with identical jQuery interfaces in most cases.
It replaces jQuery for Backbone in web and mobile applications (about 2.5kb gzipped, much faster than jQuery and Zepto).
The main idea of jBone is to use native JavaScript methods as much as possible in your project.
It is superior solution for applications based on Backbone and running on mobile devices as it is extremely small (2.5kb) and really fast library.
jBone project was created to allow people to use Backbone without jQuery.
See benchmark results here.
$ bower install jbone --save
component install kupriyanenko/jbone
$ npm install jbone --save
Add a <script>
element for jbone.js
<script src="path/to/jbone/dist/jbone.js"></script>
Or include it like npm module (with nodejs or browserify)
var $ = require('jbone');
And write awesome code:
var $input = $("<input>", {
"class": "name"
}).val("John");
$input.on("click.space", function(e) {
console.log("clicked on", this);
});
$input.trigger("click");
$input.off(".space");
jBone.fn.addClass = function(className) {
var i = 0,
length = this.length;
for (; i < length; i++) {
this[i].classList.add(className);
}
return this;
};
$(".header").addClass("loaded");
This part is not covered in jBone. You can choose one of a huge amount of AJAX implementations as well as standard Promises/A+ implementations.
For example: when, Q, simply-deferred, AJAX.
Example of AJAX connection:
// connect reqwest on your page https://rawgithub.com/ded/reqwest/master/reqwest.min.js
jBone.ajax = reqwest.compat;
$.ajax({
url: "http://example.com"
});
Example of connection with Deferred Object:
// connect simply-deferred on your page https://rawgithub.com/sudhirj/simply-deferred/master/deferred.min.js
Deferred.installInto(jBone);
var deferred = $.Deferred();
$.when(deferred).then(function(response) {
// some code
});
npm install
npm test
bower install
test/tests.html
FAQs
Library for DOM manipulation
The npm package jbone receives a total of 56 weekly downloads. As such, jbone popularity was classified as not popular.
We found that jbone 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.