New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

murgo-js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

murgo-js

murgo-js provides methods to make your code cleaner and more minimal.

latest
npmnpm
Version
1.2.7
Version published
Maintainers
1
Created
Source

Murgo.js

A lightweight minimal JavaScript utility library for modern web development

npm version License: MIT Minified Size

📦 Installation

Via npm

npm install murgo-js

Via CDN

<script src="https://cdn.jsdelivr.net/npm/murgo-js/murgo.min.js"></script>

Via ES Modules

import { $, loadJson, storage } from 'murgo-js';

⚡ Quick Start

<!DOCTYPE html>
<html>
<head>
  <title>Murgo.js Demo</title>
  <style>
    .active { background: #3498db; color: white; padding: 1rem; }
  </style>
</head>
<body>
  <div id="app"></div>

  <script src="https://cdn.jsdelivr.net/npm/murgo-js/murgo.min.js"></script>
  <script>
    // DOM manipulation
    $('#app')
      .html('<h1>Welcome to Murgo.js</h1>')
      .addClass('active')
      .on('click', () => alert('Clicked!'));
    
    // AJAX example
    loadJson('https://api.example.com/data')
      .then(data => console.log('Loaded data:', data))
      .catch(err => console.error('Error:', err));
  </script>
</body>
</html>

🌟 Key Features

🏗️ DOM Utilities

  • Chainable DOM selection and manipulation ($, $$)
  • Comprehensive class operations (addClass, removeClass, toggleClass)
  • Style management (css, show, hide, toggle)
  • Event handling (on, off, trigger)

🌐 Network Tools

  • Simplified AJAX (loadJson, loadText, netvx.ajax)
  • Promise-based HTTP requests
  • Request/response interceptors

💾 Storage Solutions

  • Unified localStorage API (storage.set, storage.get)
  • Cookie management (cookie.set, cookie.get)
  • IndexedDB wrapper (DB class)

🎨 UI Components

  • Pre-built carousels, tabs, and tooltips
  • Animation helpers (fadeIn, slideUp, animate)
  • Responsive utilities

🛠️ Utilities

  • Random generators (random.int, random.uuid)
  • String/array extensions
  • Type checking (isArr, isObj, isEl)
  • Functional programming helpers (pipe, memoize)

📚 Documentation

Explore the complete API reference:

📖 Full Documentation | 🐔 Quick start

🛠️ Development Status

Murgo.js is currently in active development (v1.2.7). We're working hard to:

  • Improve stability
  • Add new features
  • Enhance performance

🤝 Contributing

We welcome contributions! Here's how you can help:

📜 License

MIT License

Copyright (c) 2025 Murgo.js Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

cleaner

FAQs

Package last updated on 10 Jul 2025

Did you know?

Socket

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