Socket
Socket
Sign inDemoInstall

geeky-js

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    geeky-js

A simple javascript library like JQuery with some optimizations


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
17.1 kB
Created
Weekly downloads
 

Readme

Source

GeekyJS NPM version

A simple javascript library like JQuery with some optimizations.

Current Modules

  1. Click Event binding
  2. Adding Classes (One/Multiple comma seperated)
  3. Removing classes (One/Multiple comma seperated)
  4. Remove All
  5. Supports method chaining.

Installation

npm i geeky-js

Usage

<script src="dist/geeky.min.js"></script>

Click Event


  _$('#man').click(function() {
    // Stuff
  })

Add Class


  _$('#man')
      .addClass('classname1')
      .addClass('classname2')

  // OR

  _$('#man')
        .addClass('classname1, classname2, classname3');
  // Adds all three classes      

Remove Class


  _$('#man')
      .removeClass('classname1')
      .removeClass('classname2')

  // OR

  _$('#man')
        .removeClass('classname1, classname2, classname3');
  // Adds all three classes      

Remove All


  _$('#man')
      .removeAll()
  // Removes all classes      

Author

Krishcdbry [krishcdbry@gmail.com]

Licence

MIT @krishcdbry

Keywords

FAQs

Last updated on 31 Jan 2017

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