✨ 🔧 A collection of JavaScript helpers covering the DOM, debugging, de-/serialization, sanitization, validation, HTTP requests and more.
npm install goldies --save
// Import specific functions from the package
import { dedupe } from 'goldies';
// Import specific functions from the package
const { dedupe } = require('goldies');
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]));
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.