goldies
v4.4.2
Published
A wide-ranging collection of JavaScript helpers covering debugging, de-/serialization, sanitization, validation, HTTP requests and more.
Downloads
7
Maintainers
Readme
Goldies - "Good & Golden Oldies"
✨ 🔧 A collection of JavaScript helpers covering the DOM, debugging, de-/serialization, sanitization, validation, HTTP requests and more.
Table of Contents
Installation
npm install goldies --save
Usage
Using ES Modules
// Import specific functions from the package
import { dedupe } from 'goldies';
Using CommonJS
// Import specific functions from the package
const { dedupe } = require('goldies');
Using Script Tags and Globals
Include the script tag in your HTML file:
<script src="https://unpkg.com/[email protected]/dist/browser/goldies.min.js"></script>
Then, access the functions off the global goldies object:
console.log('goldies.dedupe([1, 2, 2]) === %s', goldies.dedupe([1, 2, 2]));
Background
The code and other tools here serve as my own personal reference points. In some cases, they're URL tools, or DOM helpers. But more often than not, they're tiny chunks of code I've forgotten and had to lookup on Google or StackOverflow.
Plan is to keep them here and add tests/benchmark/notes when appropriate.