• Stars
    star
    6,506
  • Rank 6,092 (Top 0.2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An absurdly small jQuery alternative for modern browsers.

Cash Logo

Cash

Cash is an absurdly small jQuery alternative for modern browsers (IE11+) that provides jQuery-style syntax for manipulating the DOM. Utilizing modern browser features to minimize the codebase, developers can use the familiar chainable methods at a fraction of the file size. 100% feature parity with jQuery isn't a goal, but Cash comes helpfully close, covering most day to day use cases.

Comparison

Size Cash Zepto 1.2.0 jQuery Slim 3.4.1
Unminified 36.5 KB 58.7 KB 227 KB
Minified 16 KB 26 KB 71 KB
Minified & Gzipped 6 KB 9.8 KB 24.4 KB

A 76.6% gain in size reduction compared to jQuery Slim. If you need a smaller bundle, we support partial builds too.

Features Cash Zepto 1.2.0 jQuery Slim 3.4.1
Supports Older Browsers ️❌
Supports Modern Browsers ️✔
Actively Maintained
Namespaced Events ️❌
Typed Codebase ✔ (TypeScript) ️❌
TypeScript Types ✔ (generated from code) ⚠️ (via DefinitelyTyped) ⚠️ (via DefinitelyTyped)
Partial Builds ✔ (can exclude individual methods) ⚠️ (can exclude whole modules) ⚠️ (can exclude whole modules)

If you're migrating from jQuery be sure to read our migration guide.

Usage

You can get Cash from jsDelivr and use it like this:

<script src="https://cdn.jsdelivr.net/npm/cash-dom/dist/cash.min.js"></script>
<script>
  $(function () {
    $('html').addClass ( 'dom-loaded' );
    $('<footer>Appended with Cash</footer>').appendTo ( document.body );
  });
</script>

Cash is also available through npm as the cash-dom package:

npm install --save cash-dom

That you can then use like this:

import $ from "cash-dom";

$(function () {
  $('html').addClass ( 'dom-loaded' );
  $('<footer>Appended with Cash</footer>').appendTo ( document.body );
});

Documentation

Cash gives you a query selector, collection methods and some library methods. If you need more details about our API just check out jQuery's, while we don't implement everything that jQuery provides, pretty much everything that we do implement should be compatible with jQuery. Cash can be extended with custom methods, read how here.

$()

This is the main selector method for Cash. It returns an actionable collection of nodes.

If a function is provided, the function will be run once the DOM is ready.

$( selector [, element] ) // => collection, using `element` as the context
$( selector [, collection] ) // => collection, using `collection` as the context
$(node) // => collection
$(nodeList) // => collection
$(htmlString) // => collection
$(collection) // => self
$(function () {}) // => document ready callback

Collection Methods

These methods from the collection prototype ($.fn) are available once you create a collection with $() and are called like so:

$(element).addClass ( className ) // => collection

Some extra methods are available but disabled by default.

Attributes Collection CSS Data Dimensions Effects
fn.addClass () fn.add () fn.css () fn.data () fn.height () fn.hide ()
fn.attr () fn.each () fn.innerHeight () fn.show ()
fn.hasClass () fn.eq () fn.innerWidth () fn.toggle ()
fn.prop () fn.filter () fn.outerHeight ()
fn.removeAttr () fn.first () fn.outerWidth ()
fn.removeClass () fn.get () fn.width ()
fn.removeProp () fn.index ()
fn.toggleClass () fn.last ()
fn.map ()
fn.slice ()
Events Forms Manipulation Offset Traversal
fn.off () fn.serialize () fn.after () fn.offset () fn.children ()
fn.on () fn.val () fn.append () fn.offsetParent () fn.closest ()
fn.one () fn.appendTo () fn.position () fn.contents ()
fn.ready () fn.before () fn.find ()
fn.trigger () fn.clone () fn.has ()
fn.detach () fn.is ()
fn.empty () fn.next ()
fn.html () fn.nextAll ()
fn.insertAfter () fn.nextUntil ()
fn.insertBefore () fn.not ()
fn.prepend () fn.parent ()
fn.prependTo () fn.parents ()
fn.remove () fn.parentsUntil ()
fn.replaceAll () fn.prev ()
fn.replaceWith () fn.prevAll ()
fn.text () fn.prevUntil ()
fn.unwrap () fn.siblings ()
fn.wrap ()
fn.wrapAll ()
fn.wrapInner ()

$.fn

The main prototype for collections, allowing you to extend Cash with plugins by adding methods to all collections.

$.fn // => Cash.prototype
$.fn.myMethod = function () {}; // Custom method added to all collections
$.fn.extend ( object ); // Add multiple methods to the prototype

fn.add ()

Returns a new collection with the element(s) added to the end.

$(element).add ( element ) // => collection
$(element).add ( selector ) // => collection
$(element).add ( collection ) // => collection

fn.addClass ()

Adds the className class to each element in the collection.

Accepts space-separated className for adding multiple classes.

$(element).addClass ( className ) // => collection

fn.after ()

Inserts content or elements after the collection.

$(element).after ( element ) // => collection
$(element).after ( htmlString ) // => collection
$(element).after ( content [, content] ) // => collection

fn.append ()

Appends content or elements to each element in the collection.

$(element).append ( element ) // => collection
$(element).append ( htmlString ) // => collection
$(element).append ( content [, content] ) // => collection

fn.appendTo ()

Adds the elements in the collection to the target element(s).

$(element).appendTo ( element ) // => collection

fn.attr ()

Without attrValue, returns the attribute value of the first element in the collection.

With attrValue, sets the attribute value of each element of the collection.

$(element).attr ( attrName ) // value
$(element).attr ( attrName, attrValue ) // => collection
$(element).attr ( object ) // => collection

fn.before ()

Inserts content or elements before the collection.

$(element).before ( element ) // => collection
$(element).before ( htmlString ) // => collection
$(element).before ( content [, content] ) // => collection

fn.children ()

Without a selector specified, returns a collection of child elements.

With a selector, returns child elements that match the selector.

$(element).children () // => collection
$(element).children ( selector ) // => collection

fn.closest ()

Returns the closest matching selector up the DOM tree.

$(element).closest ( selector ) // => collection

fn.contents ()

Get the children of each element in the set of matched elements, including text and comment nodes.

Useful for selecting elements in friendly iframes.

$('iframe').contents ().find ( '*' ) // => collection

fn.clone ()

Returns a collection with cloned elements.

$(element).clone () // => collection

fn.detach ()

Removes collection elements, optionally that match the selector, from the DOM.

$(element).detach () // => collection
$(element).detach ( selector ) // => collection

fn.css ()

Returns a CSS property value when just property is supplied.

Sets a CSS property when property and value are supplied.

Sets multiple properties when an object is supplied.

Properties will be autoprefixed if needed for the user's browser.

$(element).css ( property ) // => value
$(element).css ( property, value ) // => collection
$(element).css ( object ) // => collection

fn.data ()

Without arguments, returns an object mapping all the data-* attributes to their values.

With a key, return the value of the corresponding data-* attribute.

With both a key and value, sets the value of the corresponding data-* attribute to value.

Multiple data can be set when an object is supplied.

$(element).data () // => object
$(element).data ( key ) // => value
$(element).data ( key, value ) // => collection
$(element).data ( object ) // => collection

fn.each ()

Iterates over a collection with callback ( index, element ). The callback function may exit iteration early by returning false.

$(element).each ( callback ) // => collection

fn.empty ()

Empties the elements interior markup.

$(element).empty () // => collection

fn.eq ()

Returns a collection with the element at index.

$(element).eq ( index ) // => collection

fn.extend ()

Adds properties to the Cash collection prototype.

$.fn.extend ( object ) // => object

fn.filter ()

Returns the collection that results from applying the filter selector/method.

$(element).filter ( selector ) // => collection
$(element).filter ( function ( index, element ) {} ) // => collection

fn.find ()

Returns selector match descendants from the first element in the collection.

$(element).find ( selector ) // => collection

fn.first ()

Returns a collection containing only the first element.

$(element).first () // => collection

fn.get ()

Returns the element at the index, or returns all elements.

$(element).get ( index ) // => domNode
$(element).get () // => domNode[]

fn.has ()

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.

$(element).has ( selector ) // => collection
$(element).has ( element ) // => collection

fn.hasClass ()

Returns the boolean result of checking if any element in the collection has the className attribute.

$(element).hasClass ( className ) // => boolean

fn.height ()

Returns or sets the height of the element.

$(element).height () // => Integer
$(element).height ( number ) // => collection

fn.hide ()

Hide the elements.

$(element).hide () // => collection

fn.html ()

Returns the HTML text of the first element in the collection, sets the HTML if provided.

$(element).html () // => HTML Text
$(element).html ( htmlString ) // => HTML Text

fn.index ()

Returns the index of the element in its parent if an element or selector isn't provided. Returns index within element or selector if it is.

$(element).index () // => Integer
$(element).index ( element ) // => Integer

fn.innerHeight ()

Returns the height of the element + padding.

$(element).innerHeight () // => Integer

fn.innerWidth ()

Returns the width of the element + padding.

$(element).innerWidth () // => Integer

fn.insertAfter ()

Inserts collection after specified element.

$(element).insertAfter ( element ) // => collection

fn.insertBefore ()

Inserts collection before specified element.

$(element).insertBefore ( element ) // => collection

fn.is ()

Returns whether the provided selector, element or collection matches any element in the collection.

$(element).is ( selector ) // => boolean

fn.last ()

Returns a collection containing only the last element.

$(element).last () // => collection

fn.map ()

Returns a new collection, mapping each element with callback ( index, element ).

$(selector).map ( callback ) // => collection

fn.next ()

Returns the next adjacent elements.

$(element).next () // => collection
$(element).next ( selector ) // => collection

fn.nextAll ()

Returns all the next elements.

$(element).nextAll () // => collection
$(element).nextAll ( selector ) // => collection

fn.nextUntil ()

Returns all the next elements, until the provided selector matches.

$(element).nextUntil ( selector ) // => collection
$(element).nextUntil ( selector, filterSelector ) // => collection

fn.not ()

Filters collection by false match on collection/selector.

$(element).not ( selector ) // => collection
$(element).not ( collection ) // => collection

fn.off ()

Removes event listener from collection elements.

Accepts space-separated eventName for removing multiple events listeners.

Removes all event listeners if called without arguments.

$(element).off ( eventName, eventHandler ) // => collection
$(element).off ( eventName ) // => collection
$(element).off ( eventsMap ) // => collection
$(element).off () // => collection

fn.offset ()

Get the coordinates of the first element in a collection relative to the document.

$(element).offset () // => Object

fn.offsetParent ()

Get the first element's ancestor that's positioned.

$(element).offsetParent () // => collection

fn.on ()

Adds event listener to collection elements.

Accepts space-separated eventName for listening to multiple events.

Event is delegated if delegate is supplied.

$(element).on ( eventsMap ) // => collection
$(element).on ( eventName, eventHandler ) // => collection
$(element).on ( eventName, delegate, eventHandler ) // => collection

fn.one ()

Adds event listener to collection elements that only triggers once for each element.

Accepts space-separated eventName for listening to multiple events.

Event is delegated if delegate is supplied.

$(element).one ( eventName, eventHandler ) // => collection
$(element).one ( eventName, delegate, eventHandler ) // => collection

fn.outerHeight ()

Returns the outer height of the element. Includes margins if includeMargings is set to true.

$(element).outerHeight () // => Integer
$(element).outerHeight ( includeMargins ) // => Integer

fn.outerWidth ()

Returns the outer width of the element. Includes margins if includeMargings is set to true.

$(element).outerWidth () // => Integer
$(element).outerWidth ( includeMargins ) // => Integer

fn.parent ()

Returns collection of elements who are parent of elements.

$(element).parent () // => collection
$(element).parent ( selector ) // => collection

fn.parents ()

Returns collection of elements who are parents of elements. Optionally filtering by selector.

$(element).parents () // => collection
$(element).parents ( selector ) // => collection

fn.parentsUntil ()

Returns collection of elements who are parents of elements, until a provided selector matches. Optionally filtering by selector.

$(element).parentsUntil ( selector ) // => collection
$(element).parentsUntil ( selector, filterSelector ) // => collection

fn.position ()

Get the coordinates of the first element in a collection relative to its offsetParent.

$(element).position () // => object

fn.prepend ()

Prepends content or elements to the each element in collection.

$(element).prepend ( element ) // => collection
$(element).prepend ( htmlString ) // => collection
$(element).prepend ( content [, content] ) // => collection

fn.prependTo ()

Prepends elements in a collection to the target element(s).

$(element).prependTo ( element ) // => collection

fn.prev ()

Returns the previous adjacent elements.

$(element).prev () // => collection
$(element).prev ( selector ) // => collection

fn.prevAll ()

Returns all the previous elements.

$(element).prevAll () // => collection
$(element).prevAll ( selector ) // => collection

fn.prevUntil ()

Returns all the previous elements, until the provided selector matches.

$(element).prevUntil ( selector ) // => collection
$(element).prevUntil ( selector, filterSelector ) // => collection

fn.prop ()

Returns a property value when just property is supplied.

Sets a property when property and value are supplied, and sets multiple properties when an object is supplied.

$(element).prop ( property ) // => property value
$(element).prop ( property, value ) // => collection
$(element).prop ( object ) // => collection

fn.ready ()

Calls callback method on DOMContentLoaded.

$(document).ready ( callback ) // => collection/span

fn.remove ()

Removes collection elements, optionally that match the selector, from the DOM and removes all their event listeners.

$(element).remove () // => collection
$(element).remove ( selector ) // => collection

fn.replaceAll ()

This is similar to fn.replaceWith (), but with the source and target reversed.

$(element).replaceAll ( content ) // => collection

fn.replaceWith ()

Replace collection elements with the provided new content.

$(element).replaceWith ( content ) // => collection

fn.removeAttr ()

Removes attribute from collection elements.

Accepts space-separated attrName for removing multiple attributes.

$(element).removeAttr ( attrName ) // => collection

fn.removeClass ()

Removes className from collection elements.

Accepts space-separated className for adding multiple classes.

Providing no arguments will remove all classes.

$(element).removeClass () // => collection
$(element).removeClass ( className ) // => collection

fn.removeProp ()

Removes property from collection elements.

$(element).removeProp ( propName ) // => collection

fn.serialize ()

When called on a form, serializes and returns form data.

$(form).serialize () // => String

fn.show ()

Show the elements.

$(element).show () // => collection

fn.siblings ()

Returns a collection of sibling elements.

$(element).siblings () // => collection
$(element).siblings ( selector ) // => collection

fn.slice ()

Returns a new collection with elements taken from start to end.

$(selector).slice ( start, end ) // => collection

fn.text ()

Returns the inner text of the first element in the collection, sets the text if textContent is provided.

$(element).text () // => text
$(element).text ( textContent ) // => collection

fn.toggle ()

Hide or show the elements.

$(element).toggle () // => collection
$(element).toggle ( force ) // => collection

fn.toggleClass ()

Adds or removes className from collection elements based on if the element already has the class.

Accepts space-separated classNames for toggling multiple classes, and an optional force boolean to ensure classes are added (true) or removed (false).

$(element).toggleClass ( className ) // => collection
$(element).toggleClass ( className, force ) // => collection

fn.trigger ()

Triggers supplied event on elements in collection. Data can be passed along as the second parameter.

$(element).trigger ( eventName ) // => collection
$(element).trigger ( eventObj ) // => collection
$(element).trigger ( eventName, data ) // => collection
$(element).trigger ( eventObj, data ) // => collection

fn.unwrap ()

Removes the wrapper from all elements.

$(element).unwrap () // => collection

fn.val ()

Returns an inputs value. If value is supplied, sets all inputs in collection's value to the value argument.

$(input).val () // => value
$(input).val ( value ) // => collection

fn.width ()

Returns or sets the width of the element.

$(element).width () // => number
$(element).width ( number ) // => collection

fn.wrap ()

Wraps a structure around each element.

$(element).wrap ( structure ) // => collection

fn.wrapAll ()

Wraps a structure around all elements.

$(element).wrapAll ( structure ) // => collection

fn.wrapInner ()

Wraps a structure around all children.

$(element).wrapInner ( structure ) // => collection

Cash Methods

These methods are exported from the global $ object, and are called like so:

$.isArray ( arr ) // => boolean

Some extra methods are available but disabled by default.

Type Checking Utilities
$.isArray () $.guid
$.isFunction () $.each ()
$.isNumeric () $.extend ()
$.isPlainObject () $.parseHTML ()
$.isWindow () $.unique ()

$.guid

A unique number.

$.guid++ // => number

$.each ()

Iterates through an array and calls the callback ( index, element ) method on each element.

Iterates through an object and calls the callback ( key, value ) method on each property.

The callback function may exit iteration early by returning false.

$.each ( array, callback ) // => array
$.each ( object, callback ) // => object

$.extend ()

Extends target object with properties from the source object, potentially deeply too.

$.extend ( target, source ) // => object
$.extend ( true, target, source ) // => object

$.isArray ()

Check if the argument is an array.

$.isArray ([ 1, 2, 3 ]) // => true

$.isFunction ()

Check if the argument is a function.

function fn () {};
$.isFunction ( fn ) // => true

$.isNumeric ()

Check if the argument is numeric.

$.isNumeric ( 57 ) // => true

$.isPlainObject ()

Check if the argument is a plain object.

$.isPlainObject ( {} ) // => true

$.isWindow ()

Check if the argument is a Window object.

$.isWindow ( window ) // => true

$.parseHTML ()

Returns a collection from an HTML string.

$.parseHTML ( htmlString ) // => collection

$.unique ()

Returns a new array with duplicates removed.

$.unique ( array ) // => array

Contributing

If you found a problem, or have a feature request, please open an issue about it.

If you want to make a pull request you should:

  1. Clone the repository: git clone https://github.com/fabiospampinato/cash.git.
  2. Enter the cloned repository: cd cash
  3. Install the dependencies: npm install.
  4. Automatically recompile Cash whenever a change is made: npm run dev.
  5. Open the test suite: npm run test.
  6. Remember to update the readme, if necessary.

Thanks

License

MIT © Fabio Spampinato

More Repositories

1

cliflix

Watch anything instantaneously, just write its name.
TypeScript
1,492
star
2

vscode-todo-plus

Manage todo lists with ease. Powerful, easy to use and customizable.
TypeScript
843
star
3

autogit

Define commands, using plugins, to execute across all your repositories.
TypeScript
471
star
4

phoenix

My Phoenix setup. Powerful, easy to customize, tuned for web development, adds a space switcher.
JavaScript
397
star
5

bump

Bump updates the project's version, updates/creates the changelog, makes the bump commit, tags the bump commit and makes the release to GitHub. Opinionated but configurable.
TypeScript
393
star
6

noty

Autosaving sticky note with support for multiple notes without needing multiple windows.
TypeScript
337
star
7

store

A beautifully-simple framework-agnostic modern state management library.
TypeScript
227
star
8

tiny-bin

A library for building tiny and beautiful command line apps.
TypeScript
175
star
9

atomically

Write files atomically and reliably.
JavaScript
146
star
10

template

A super-simple way to create new projects based on templates.
TypeScript
131
star
11

flimsy

A single-file <1kb min+gzip simplified implementation of the reactive core of Solid, optimized for clean code.
TypeScript
130
star
12

vscode-highlight

Advanced text highlighter based on regexes. Useful for todos, annotations etc.
TypeScript
126
star
13

vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
TypeScript
110
star
14

shosho

A modern and powerful shortcuts management library.
TypeScript
87
star
15

picorpc

A tiny RPC library and spec, inspired by JSON-RPC 2.0 and tRPC.
TypeScript
84
star
16

overstated

React state management library that's delightful to use, without sacrificing performance or scalability.
TypeScript
82
star
17

vscode-monokai-night

A complete, dark and minimalistic Monokai-inspired theme.
HTML
74
star
18

vscode-open-in-github

Open the current project or file in github.com.
TypeScript
72
star
19

enex-dump

Dump the content of .enex files, preserving attachements, some metadata and optionally converting notes to Markdown.
JavaScript
71
star
20

shortcuts

Super performant and feature rich shortcuts management library.
TypeScript
66
star
21

watcher

The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.
JavaScript
65
star
22

vscode-projects-plus

An extension for managing projects. Feature rich, customizable, automatically finds your projects.
TypeScript
64
star
23

svelto

Modular front end framework for modern browsers, with battery included: 100+ widgets and tools.
JavaScript
60
star
24

icon-font-buildr

Build custom icon fonts, it supports remote and local icons sources.
TypeScript
51
star
25

pastebin-monitor

A simple Pastebin monitor which looks for interesting things and saves them to disk.
Python
50
star
26

vscode-commands

Trigger arbitrary commands from the statusbar. Supports passing arguments!
TypeScript
50
star
27

monorepo

The homepage for all my repositories.
49
star
28

rssa

RSS-Anything, get updates about anything you can reach with an url. Like RSS, but for anything.
TypeScript
49
star
29

proxy-watcher

A library that recursively watches an object for mutations via Proxies and tells you which paths changed.
JavaScript
46
star
30

banal

On-demand bundle analyzer, powered by esbuild.
HTML
42
star
31

template-vscode-extension

A template for starting a new vscode extension quickly.
TypeScript
37
star
32

khroma

A collection of functions for manipulating CSS colors, inspired by SASS.
JavaScript
36
star
33

lande

A tiny neural network for natural language detection.
TypeScript
33
star
34

vscode-projects-plus-todo-plus

Bird's-eye view over your projects, view all your todo files aggregated into one.
TypeScript
27
star
35

awesome-autogit

Curated list of resources for autogit.
27
star
36

vscode-diff

Diff 2 opened files with ease. Because running `code --diff path1 path2` is too slow.
TypeScript
26
star
37

termux-env

My super-quick-to-setup Termux environment.
Lua
26
star
38

zeptomatch

An absurdly small glob matcher that packs a punch.
JavaScript
24
star
39

worktank

A simple isomorphic library for executing functions inside WebWorkers or Node Threads pools.
TypeScript
23
star
40

alfred-spaces-workflow

Alfred workflow that, used in conjunction with my Phoenix setup, gives you a spaces switcher.
23
star
41

vscode-markdown-todo

Manage todo lists inside markdown files with ease.
TypeScript
22
star
42

noren

A minimal HTTP server with good developer-experience and performance, for Node and beyond.
TypeScript
21
star
43

pollex

A tiny polling-based filesystem watcher that tries to be efficient.
TypeScript
21
star
44

vscode-debug-launcher

Start debugging, without having to define any tasks or launch configurations, even from the terminal.
TypeScript
20
star
45

gitman

A simple yet powerful opinionated tool for managing GitHub repositories.
TypeScript
19
star
46

tiny-sqlite3

A tiny cross-platform client for SQLite3, with precompiled binaries as the only third-party dependencies.
JavaScript
19
star
47

vscode-statusbar-debugger

Adds a debugger to the statusbar, less intrusive than the default floating one.
TypeScript
19
star
48

pacco

A bundler for modular and extensible web projects.
JavaScript
18
star
49

vscode-github-notifications-bell

A secure, customizable, statusbar bell that notifies you about notifications on github.
TypeScript
18
star
50

vscode-bump

Bump your project's version and update the changelog. Opinionated but configurable.
TypeScript
16
star
51

vscode-open-in-application

Open an arbitrary file in its default app, or the app you want.
TypeScript
15
star
52

monex

Execute a script and restart it whenever it crashes or a watched file changes.
TypeScript
15
star
53

tiny-encryptor

A tiny opinionated isomorphic library for encrypting and decrypting with ease.
JavaScript
14
star
54

awesome-template

Curated list of templates for Template.
14
star
55

jsonc-simple-parser

A simple JSON parser that supports comments and optional trailing commas.
JavaScript
14
star
56

secret

The simplest command to encrypt/decrypt a file, useful for committing encrypted ".env" files to version control, among other things.
TypeScript
14
star
57

specialist

A library that helps you write tiny, fast, bundled and beautiful CLI apps that can automatically check for updates.
JavaScript
13
star
58

zstandard-wasm

A fast and small port of Zstandard to WASM. (Decompress-only for now).
C
13
star
59

dettle

A tiny fully-featured debounce and throttle implementation.
TypeScript
13
star
60

is

The definitive collection of is* functions for runtime type checking. Lodash-compatible, tree-shakable, with types.
JavaScript
12
star
61

base256-encoding

Base256 encoding, the most memory-efficient encoding possible in JavaScript.
JavaScript
12
star
62

zeptoid

A tiny isomorphic fast function for generating a cryptographically random hex string.
TypeScript
11
star
63

vscode-browser-refresh

Refresh the browser with a ⌘R, right from Code. No need to switch focus to it.
TypeScript
10
star
64

tiny-levenshtein

A tiny implementation of the Levenshtein edit distance algorithm.
TypeScript
10
star
65

json-sorted-stringify

Alternative JSON.stringify function with sorted keys, so the output is stable.
JavaScript
10
star
66

huffy

A tiny compression library based on Huffman coding.
TypeScript
10
star
67

amuchina

A work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebWorker like neither of those.
TypeScript
10
star
68

scex

A simple runner for npm scripts that can execute multiple scripts, in serial or in parallel.
TypeScript
10
star
69

toygrad

A toy library for building simple neural networks which can be serialized to compact JSON.
TypeScript
10
star
70

vscode-optimize-images

Optimize one or all the images in your project using your favorite app.
TypeScript
9
star
71

crypto-puzzle

Basically a proof-of-work generator, this library makes cryptographic puzzles that are arbitrarily expensive to solve.
TypeScript
9
star
72

vscode-open-in-terminal

Adds a few commands for opening the current project in Terminal.
TypeScript
9
star
73

strid

Get a unique string identifier for any input value.
JavaScript
9
star
74

paketo

A tiny library for importing your package.json, with proper types!
TypeScript
9
star
75

grammex

A tiny PEG-like system for building language grammars with regexes.
JavaScript
9
star
76

tiny-parse-argv

A tiny function for parsing process.argv, a modern rewrite of a sensible subset of minimist.
JavaScript
9
star
77

tsex

A little CLI for making TypeScript packages, cleanly and effortlessly.
TypeScript
9
star
78

css-simple-minifier

A CSS minifier that's tiny and very fast.
JavaScript
8
star
79

vscode-open-multiple-files

Open all files in a folder at once, optionally filtering by a glob.
TypeScript
8
star
80

path-prop

Fast library for manipulating plain objects using paths.
JavaScript
8
star
81

react-router-static

A dead simple static router for React. Useful for multi-window Electron applications.
TypeScript
8
star
82

base128-encoding

Base128 encoding, the intersection of latin1 and utf-8, which is basically ASCII, the most memory-efficient string encoding that can be written to disk as utf-8 without ballooning in size.
TypeScript
8
star
83

noop-tag

A noop template literal tag, useful for syntax highlighting hints.
JavaScript
7
star
84

vscode-no-unsupported

An extension for removing [Unsupported] from the titlebar
TypeScript
7
star
85

tiny-webcrypto

A tiny isomorphic WebCrypto object, it just gives you the native one the current platform provides.
TypeScript
7
star
86

csv-simple-parser

A simple, fast and configurable CSV parser.
JavaScript
7
star
87

performance-interval

A precise implementation of setInterval that supports sub-millisecond intervals.
TypeScript
7
star
88

json-archive

Simple archive format based on JSON.
TypeScript
7
star
89

alfred-eject-workflow

Alfred workflow for ejecting mounted drives.
7
star
90

tiny-jsonc

An absurdly small JSONC parser.
JavaScript
7
star
91

chrome-window-session

Save each window as a separate session, automatically.
TypeScript
6
star
92

template-electron

A template for starting a new electron app quickly.
TypeScript
6
star
93

electron-about

Simple standalone about window for Electron.
TypeScript
6
star
94

bob-wasm

A port of Svgbob to WASM.
TypeScript
6
star
95

benchloop

Simple benchmarking library with a pretty output.
TypeScript
6
star
96

worktank-loader

WebPack plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.
TypeScript
6
star
97

html-segmentator

A small library for splitting an HTML string into its top-level sections. Based on html5parser.
TypeScript
6
star
98

vscode-git-history

View or diff against previous versions of the current file.
TypeScript
6
star
99

uint8-concat

Concatenate mutiple Uint8Arrays super efficiently.
JavaScript
6
star
100

configuration

Performant and feature rich library for managing configurations/settings.
JavaScript
6
star