Socket
Socket
Sign inDemoInstall

chober

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chober

Chober.js - is 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.


Version published
Maintainers
1
Install size
240 kB
Created

Readme

Source

Chober.js

Codacy Badge npm version

Docs | Licence

A collection of useful 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.

Quick start

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@1.2.3/dist/chober.min.js"></script>

npm

Import one method
// ES6
import { isEmpty } from 'chober';
// CommonJS
const { isEmpty } = require('chober');
isEmpty([]);
// => true
Import all library and use all methods
// ES6
import _c from 'chober';
// CommonJS
const _c = require('chober');
_c.isEmpty([]);
// => true

_c.clone({ key: 'value' });
// => { key: 'value' }
Import only one method

If you import one method, other methods will not be imported.

// ES6
import isEmpty from 'chober/lib/isEmpty'; // ~600B
// CommonJS
const isEmpty = require('chober/lib/isEmpty'); // ~600B
isEmpty([]);
// => true

Browser

_c binds to the window.

<script src="chober.min.js"></script>
_c.isEmpty([]);
// => true

Methods

All methods you can find in our documentation.


© Valery Strelets

Keywords

FAQs

Last updated on 21 Jan 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc