Skip to content

✨ 🔧 A collection of JavaScript helpers covering debugging, de-/serialization, sanitization, validation, HTTP requests and more.

License

Notifications You must be signed in to change notification settings

matthewhudson/goldies

Repository files navigation

Goldies - "Good & Golden Oldies"

✨ 🔧 A collection of JavaScript helpers covering the DOM, debugging, de-/serialization, sanitization, validation, HTTP requests and more.

GitHub Workflow Status codecov npm

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/goldies@5.0.0/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.

About

✨ 🔧 A collection of JavaScript helpers covering debugging, de-/serialization, sanitization, validation, HTTP requests and more.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks