murgo-js
v1.2.7
Published
murgo-js provides methods to make your code cleaner and more minimal.
Downloads
7
Maintainers
Readme
Murgo.js
A lightweight minimal JavaScript utility library for modern web development
📦 Installation
Via npm
npm install murgo-jsVia 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 (
DBclass)
🎨 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:
Report Bugs
Open an issue with detailed reproduction stepsSuggest Features
Share your ideas
📜 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.
