Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
chober
Advanced tools
Readme
A collection of methods that are used by programmers every day. We decided to put all the methods together so as not to copy them from project to project.
Install with npm.
$ npm i chober
or download and install with script
.
<script src="chober.min.js"></script>
or cdn
<!-- Latest -->
<script src="https://cdn.jsdelivr.net/npm/chober/dist/chober.min.js"></script>
<!-- With version -->
<script src="https://cdn.jsdelivr.net/npm/chober@0.1.0/dist/chober.min.js"></script>
import { isEmpty } from 'chober';
isEmpty([]);
// => true
import _c from 'chober';
_c.isEmpty([]);
// => true
_c.clone({ key: 'value' });
// => { key: 'value' }
If you import one method, other methods will not be imported.
import isEmpty from 'chober/lib/isEmpty'; // ~600B
isEmpty([]);
// => true
_c
binds to the window
.
<script src="chober.min.js"></script>
_c.isEmpty([]);
// => true
If you want to add your methods, read the instructions below.
git clone https://github.com/BrooonS/chober.git
.lib
folder. Example: lib/yourMethod.js
.index.js
.npm run build
command.Example
// lib/yourMethod.js
/**
* Method to sum two numbers.
*
* @param {Number} a First number.
* @param {Number} b Second number.
* @returns {Number}
*
* @example
* math(2, 2)
* // => 4
*/
function math(a, b) {
return a + b;
}
export default math;
// index.js
import yourMethod from './lib/yourMethod';
export {
... // other methods
yourMethod,
};
class Chober {
constructor() {
Object.assign(this, {
... // other methods
yourMethod,
});
}
}
All methods you can find in our documentation.
© Valery Strelets
FAQs
Unknown package
We found that chober 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 researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.