An open API service providing repository metadata for many open source software ecosystems.

GitHub / webmodules 60 Repositories

ES6 modules for web usage – on NPM

webmodules/jsonp

A simple JSONP implementation

Language: JavaScript - Size: 32.2 KB - Last synced at: 25 days ago - Pushed at: about 1 year ago - Stars: 1,907 - Forks: 330

webmodules/range-normalize

Cross-browser normalization of DOM Range start and end containers

Language: JavaScript - Size: 438 KB - Last synced at: about 1 month ago - Pushed at: over 9 years ago - Stars: 9 - Forks: 5

webmodules/urlregexp

Regular expression to match URLs in a body of plain text.

Language: JavaScript - Size: 148 KB - Last synced at: 8 days ago - Pushed at: over 9 years ago - Stars: 30 - Forks: 5

webmodules/dom-serialize

Serializes any DOM node into a String

Language: JavaScript - Size: 26.4 KB - Last synced at: about 1 month ago - Pushed at: almost 6 years ago - Stars: 37 - Forks: 13

webmodules/selection-is-backward

Returns `true` if the Selection is "backward", `false` otherwise

Language: JavaScript - Size: 109 KB - Last synced at: 11 days ago - Pushed at: over 5 years ago - Stars: 5 - Forks: 3

webmodules/get-document

Returns the `document` object from a DOM object

Language: JavaScript - Size: 13.7 KB - Last synced at: 11 days ago - Pushed at: almost 8 years ago - Stars: 10 - Forks: 1

webmodules/mutation-observer

Exposes the native MutationObserver API provided by the browser, or a polyfill based on mutation events. (For compatibility with IE9-10.)

Language: JavaScript - Size: 17.6 KB - Last synced at: about 15 hours ago - Pushed at: almost 6 years ago - Stars: 65 - Forks: 14

webmodules/raf-debounce

Language: JavaScript - Size: 117 KB - Last synced at: 23 days ago - Pushed at: about 10 years ago - Stars: 6 - Forks: 0

webmodules/blob

A cross-browser Blob that falls back to BlobBuilder when appropriate

Language: JavaScript - Size: 15.6 KB - Last synced at: about 1 month ago - Pushed at: about 6 years ago - Stars: 30 - Forks: 23

webmodules/custom-event

Cross-browser `CustomEvent` constructor

Language: JavaScript - Size: 6.84 KB - Last synced at: 2 days ago - Pushed at: over 8 years ago - Stars: 99 - Forks: 12

webmodules/gravatar

client-side gravatar component

Language: JavaScript - Size: 336 KB - Last synced at: 4 days ago - Pushed at: almost 2 years ago - Stars: 68 - Forks: 13

webmodules/range-at-index

Returns a Range instance selecting text within an HTML Element, at start and end offsets

Language: JavaScript - Size: 148 KB - Last synced at: 7 days ago - Pushed at: about 3 years ago - Stars: 8 - Forks: 2

webmodules/dom-paste

Retrieve the clipboard content as an HTMLElement on a paste event

Language: TypeScript - Size: 271 KB - Last synced at: 16 days ago - Pushed at: almost 10 years ago - Stars: 4 - Forks: 1

webmodules/bounding-client-rect

Cross-browser `getBoundingClientRect()` for all Node types

Language: JavaScript - Size: 208 KB - Last synced at: 14 days ago - Pushed at: over 8 years ago - Stars: 23 - Forks: 7

webmodules/load-styles

Add a CSS <style> tag to the document's <head> node

Language: JavaScript - Size: 164 KB - Last synced at: about 1 month ago - Pushed at: over 10 years ago - Stars: 11 - Forks: 2

webmodules/element-scroll-to

Scrolls an HTML element into the browser viewport

Language: JavaScript - Size: 166 KB - Last synced at: 7 days ago - Pushed at: almost 9 years ago - Stars: 16 - Forks: 3

webmodules/unwrap-node

Unwraps a given DOM element and returns a Range surrounding its child nodes

Language: JavaScript - Size: 164 KB - Last synced at: 12 days ago - Pushed at: about 10 years ago - Stars: 4 - Forks: 3

webmodules/wrap-range

Wraps a DOM Range instance with a new DOM element

Language: JavaScript - Size: 28.3 KB - Last synced at: 14 days ago - Pushed at: over 8 years ago - Stars: 5 - Forks: 0

webmodules/range-iterator

ES6 Iterator that iterates over the Nodes of a Range

Language: JavaScript - Size: 250 KB - Last synced at: about 1 month ago - Pushed at: about 10 years ago - Stars: 7 - Forks: 3

webmodules/unwrap-range

Removes the specified `nodeName` from within or surrounding the given Range

Language: JavaScript - Size: 39.1 KB - Last synced at: 13 days ago - Pushed at: over 8 years ago - Stars: 5 - Forks: 2

webmodules/block-elements

Array of "block level elements" defined by the HTML specification

Language: JavaScript - Size: 6.84 KB - Last synced at: about 1 year ago - Pushed at: about 8 years ago - Stars: 19 - Forks: 3

webmodules/node-iterator

A ES6 Generator that traverses the child nodes within the given `Node`

Language: JavaScript - Size: 152 KB - Last synced at: 11 days ago - Pushed at: about 10 years ago - Stars: 11 - Forks: 1

webmodules/indent-command

Command implementation for cross-browser normalization of the "indent" command

Language: JavaScript - Size: 367 KB - Last synced at: 12 days ago - Pushed at: about 10 years ago - Stars: 2 - Forks: 2

webmodules/stickyfill

A polyfill for `position: sticky` for browsers that don't support it yet. Essentially a webmodule wrapper for wilddeer/stickyfill.

Language: JavaScript - Size: 125 KB - Last synced at: 16 days ago - Pushed at: over 7 years ago - Stars: 22 - Forks: 4

webmodules/babel-base

Base project for use with Babel.

Language: Makefile - Size: 227 KB - Last synced at: 17 days ago - Pushed at: almost 10 years ago - Stars: 4 - Forks: 0

webmodules/dom-splice

Language: JavaScript - Size: 137 KB - Last synced at: about 1 month ago - Pushed at: almost 10 years ago - Stars: 9 - Forks: 2

webmodules/progress-event

Cross-browser `ProgressEvent` constructor

Language: JavaScript - Size: 137 KB - Last synced at: about 2 hours ago - Pushed at: about 7 years ago - Stars: 4 - Forks: 3

webmodules/wrap-command

Command implementation based on `wrap-range` and `unwrap-range`

Language: JavaScript - Size: 253 KB - Last synced at: 9 days ago - Pushed at: about 10 years ago - Stars: 2 - Forks: 5

webmodules/header-command

Command implementation for header tags ("h1", "h2", "h3", etc.)

Language: JavaScript - Size: 160 KB - Last synced at: 5 days ago - Pushed at: about 10 years ago - Stars: 1 - Forks: 2

webmodules/link-command

"createLink" and "unlink" native commands packaged as a Command

Language: JavaScript - Size: 281 KB - Last synced at: 13 days ago - Pushed at: about 10 years ago - Stars: 5 - Forks: 1

webmodules/get-window

Returns the `window` object from a DOM object

Language: JavaScript - Size: 19.5 KB - Last synced at: 24 days ago - Pushed at: about 7 years ago - Stars: 6 - Forks: 3

webmodules/padding-command

Adjusts the padding of the selected paragraphs by a given amount (delta).

Language: JavaScript - Size: 141 KB - Last synced at: 19 days ago - Pushed at: about 10 years ago - Stars: 2 - Forks: 1

webmodules/list-command

Command implementation for (un)ordered lists

Language: JavaScript - Size: 225 KB - Last synced at: 11 days ago - Pushed at: about 10 years ago - Stars: 2 - Forks: 1

webmodules/outdent-command

A Command implementation that removes the nearest BLOCKQUOTE element from the DOM

Language: JavaScript - Size: 266 KB - Last synced at: 19 days ago - Pushed at: about 10 years ago - Stars: 1 - Forks: 1

webmodules/save-range

Uses DOM markers to save a Range's boundaries for loading later

Language: JavaScript - Size: 242 KB - Last synced at: about 1 month ago - Pushed at: about 10 years ago - Stars: 3 - Forks: 1

webmodules/range-insert-node

Cross-browser polyfill for `Range#insertNode()`

Language: JavaScript - Size: 215 KB - Last synced at: 8 days ago - Pushed at: over 10 years ago - Stars: 3 - Forks: 1

webmodules/dom-path

Path api for dom nodes

Language: TypeScript - Size: 105 KB - Last synced at: 20 days ago - Pushed at: over 10 years ago - Stars: 2 - Forks: 2

webmodules/node-contains

`Node#contains()` cross browser polyfill

Language: JavaScript - Size: 109 KB - Last synced at: 12 days ago - Pushed at: almost 8 years ago - Stars: 4 - Forks: 0

webmodules/dom-regexp-match

Creates Range instances within an HTML Element that select text matching a RegExp

Language: JavaScript - Size: 152 KB - Last synced at: 20 days ago - Pushed at: about 10 years ago - Stars: 1 - Forks: 0

webmodules/abstract-command

Abstract `Command` base class to make implementing custom commands easier

Language: JavaScript - Size: 164 KB - Last synced at: 4 days ago - Pushed at: over 10 years ago - Stars: 1 - Forks: 0

webmodules/find-within

Traverses "down" the child nodes hierarchy in order to find a Node within

Language: JavaScript - Size: 121 KB - Last synced at: 19 days ago - Pushed at: almost 11 years ago - Stars: 1 - Forks: 0

webmodules/dom-move

Move children from one DOM node to another.

Language: JavaScript - Size: 117 KB - Last synced at: 3 months ago - Pushed at: over 10 years ago - Stars: 5 - Forks: 0

webmodules/prepend-child

The inverse of `Element#appendChild()`.

Language: JavaScript - Size: 120 KB - Last synced at: 18 days ago - Pushed at: over 10 years ago - Stars: 1 - Forks: 0

webmodules/current-selection

Returns a `Selection` instance from the current document selection

Language: TypeScript - Size: 137 KB - Last synced at: 11 days ago - Pushed at: over 10 years ago - Stars: 2 - Forks: 0

webmodules/is-full-screen

Cross-browser HTML5 `isFullscreen`

Language: JavaScript - Size: 113 KB - Last synced at: 3 months ago - Pushed at: almost 10 years ago - Stars: 1 - Forks: 0

webmodules/request-full-screen

Cross-browser HTML5 `requestFullscreen`

Language: JavaScript - Size: 113 KB - Last synced at: 3 months ago - Pushed at: almost 10 years ago - Stars: 3 - Forks: 0

webmodules/on-full-screen

Cross-browser wrapper for the `onfullscreenchange` event

Language: JavaScript - Size: 113 KB - Last synced at: 3 months ago - Pushed at: almost 10 years ago - Stars: 3 - Forks: 0

webmodules/exit-full-screen

Cross-browser HTML5 `exitFullscreen`

Language: JavaScript - Size: 113 KB - Last synced at: 3 months ago - Pushed at: almost 10 years ago - Stars: 2 - Forks: 0

webmodules/base-url

Returns the "base URL" of the `document`

Language: JavaScript - Size: 117 KB - Last synced at: 21 days ago - Pushed at: about 10 years ago - Stars: 2 - Forks: 0

webmodules/range-equals

Compare two DOM ranges for equality

Language: Makefile - Size: 148 KB - Last synced at: 19 days ago - Pushed at: about 10 years ago - Stars: 6 - Forks: 0

webmodules/range-position

Determine where a collapsed Range is positioned relative to a DOM Node

Language: TypeScript - Size: 129 KB - Last synced at: 14 days ago - Pushed at: about 10 years ago - Stars: 3 - Forks: 0

webmodules/selection-token

Makes a DOM Element respect "selection tokens"

Language: JavaScript - Size: 148 KB - Last synced at: 3 months ago - Pushed at: about 10 years ago - Stars: 0 - Forks: 0

webmodules/blockquote-command

Command implementation for inserting a BLOCKQUOTE node

Language: JavaScript - Size: 316 KB - Last synced at: 3 months ago - Pushed at: about 10 years ago - Stars: 0 - Forks: 0

webmodules/data-transfer-is-file

Detect if dataTransfer object contains files in its types property

Language: JavaScript - Size: 121 KB - Last synced at: 11 days ago - Pushed at: over 10 years ago - Stars: 0 - Forks: 0

webmodules/current-range

Returns a `Range` instance from the current document selection

Language: TypeScript - Size: 141 KB - Last synced at: 8 days ago - Pushed at: over 10 years ago - Stars: 1 - Forks: 0

webmodules/range-extract-contents

Cross-browser polyfill for `Range#extractContents()`

Language: JavaScript - Size: 133 KB - Last synced at: 21 days ago - Pushed at: over 10 years ago - Stars: 0 - Forks: 0

webmodules/native-command

`document.execCommand()` wrapper implementing the Command interface

Language: JavaScript - Size: 305 KB - Last synced at: 15 days ago - Pushed at: over 10 years ago - Stars: 0 - Forks: 0

webmodules/collapse

Collapses Ranges and Selections in a cross-browser way.

Language: JavaScript - Size: 117 KB - Last synced at: 3 months ago - Pushed at: over 10 years ago - Stars: 1 - Forks: 0

webmodules/selection-set-range

Sets the passed in `range` onto the given `selection`, removing any previous selection

Language: TypeScript - Size: 113 KB - Last synced at: 21 days ago - Pushed at: over 10 years ago - Stars: 1 - Forks: 0

webmodules/frozen-range

Store a Range in a non-live representation for later use.

Language: TypeScript - Size: 113 KB - Last synced at: 14 days ago - Pushed at: over 10 years ago - Stars: 2 - Forks: 0