repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/model/chunk.js
src/model/chunk.js
import { cleanUpLine } from "../line/line_data.js" import { indexOf } from "../util/misc.js" import { signalLater } from "../util/operation_group.js" // The document is represented as a BTree consisting of leaves, with // chunk of lines in them, and branches, with up to ten leaves or // other branch nodes below them. ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/model/change_measurement.js
src/model/change_measurement.js
import { cmp, Pos } from "../line/pos.js" import { lst } from "../util/misc.js" import { normalizeSelection, Range, Selection } from "./selection.js" // Compute the position of the end of a change (its 'to' property // refers to the pre-change end). export function changeEnd(change) { if (!change.text) return chang...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/model/line_widget.js
src/model/line_widget.js
import { runInOp } from "../display/operations.js" import { addToScrollTop } from "../display/scrolling.js" import { regLineChange } from "../display/view_tracking.js" import { heightAtLine, lineIsHidden } from "../line/spans.js" import { lineNo, updateLineHeight } from "../line/utils_line.js" import { widgetHeight } f...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/model/changes.js
src/model/changes.js
import { retreatFrontier } from "../line/highlight.js" import { startWorker } from "../display/highlight_worker.js" import { operation } from "../display/operations.js" import { regChange, regLineChange } from "../display/view_tracking.js" import { clipLine, clipPos, cmp, Pos } from "../line/pos.js" import { sawReadOnl...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/model/document_data.js
src/model/document_data.js
import { loadMode } from "../display/mode_state.js" import { runInOp } from "../display/operations.js" import { regChange } from "../display/view_tracking.js" import { Line, updateLine } from "../line/line_data.js" import { findMaxLine } from "../line/spans.js" import { getLine } from "../line/utils_line.js" import { e...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/model/mark_text.js
src/model/mark_text.js
import { eltP } from "../util/dom.js" import { eventMixin, hasHandler, on } from "../util/event.js" import { endOperation, operation, runInOp, startOperation } from "../display/operations.js" import { clipPos, cmp, Pos } from "../line/pos.js" import { lineNo, updateLineHeight } from "../line/utils_line.js" import { cle...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/addon/runmode/codemirror-standalone.js
src/addon/runmode/codemirror-standalone.js
import StringStream from "../../util/StringStream.js" import { countColumn } from "../../util/misc.js" import * as modeMethods from "../../modes.js" // declare global: globalThis, CodeMirror // Create a minimal CodeMirror needed to use runMode, and assign to root. var root = typeof globalThis !== 'undefined' ? global...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/addon/runmode/runmode.node.js
src/addon/runmode/runmode.node.js
import "./codemirror.node.js" import "../../../addon/runmode/runmode.js"
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/addon/runmode/codemirror.node.js
src/addon/runmode/codemirror.node.js
import StringStream from "../../util/StringStream.js" import * as modeMethods from "../../modes.js" import {countColumn} from "../../util/misc.js" // Copy StringStream and mode methods into exports (CodeMirror) object. exports.StringStream = StringStream exports.countColumn = countColumn for (var exported in modeMetho...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/addon/runmode/runmode-standalone.js
src/addon/runmode/runmode-standalone.js
import "./codemirror-standalone.js" import "../../../addon/runmode/runmode.js"
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/update_display.js
src/display/update_display.js
import { sawCollapsedSpans } from "../line/saw_special_spans.js" import { heightAtLine, visualLineEndNo, visualLineNo } from "../line/spans.js" import { getLine, lineNumberFor } from "../line/utils_line.js" import { displayHeight, displayWidth, getDimensions, paddingVert, scrollGap } from "../measurement/position_measu...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/update_lines.js
src/display/update_lines.js
import { heightAtLine } from "../line/spans.js" import { getLine, lineAtHeight, updateLineHeight } from "../line/utils_line.js" import { paddingTop, charWidth } from "../measurement/position_measurement.js" import { ie, ie_version } from "../util/browser.js" // Read the actual heights of the rendered lines, and update...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/update_line.js
src/display/update_line.js
import { buildLineContent } from "../line/line_data.js" import { lineNumberFor } from "../line/utils_line.js" import { ie, ie_version } from "../util/browser.js" import { elt, classTest } from "../util/dom.js" import { signalLater } from "../util/operation_group.js" // When an aspect of a line changes, a string is add...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/focus.js
src/display/focus.js
import { restartBlink } from "./selection.js" import { webkit } from "../util/browser.js" import { addClass, rmClass } from "../util/dom.js" import { signal } from "../util/event.js" export function ensureFocus(cm) { if (!cm.hasFocus()) { cm.display.input.focus() if (!cm.state.focused) onFocus(cm) } } exp...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/scrolling.js
src/display/scrolling.js
import { Pos } from "../line/pos.js" import { cursorCoords, displayHeight, displayWidth, estimateCoords, paddingTop, paddingVert, scrollGap, textHeight } from "../measurement/position_measurement.js" import { gecko, phantom } from "../util/browser.js" import { elt } from "../util/dom.js" import { signalDOMEvent } from ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/selection.js
src/display/selection.js
import { Pos } from "../line/pos.js" import { visualLine } from "../line/spans.js" import { getLine } from "../line/utils_line.js" import { charCoords, cursorCoords, displayWidth, paddingH, wrappedLineExtentChar } from "../measurement/position_measurement.js" import { getOrder, iterateBidiSections } from "../util/bidi....
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/mode_state.js
src/display/mode_state.js
import { getMode } from "../modes.js" import { startWorker } from "./highlight_worker.js" import { regChange } from "./view_tracking.js" // Used to get the editor into a consistent state again when options change. export function loadMode(cm) { cm.doc.mode = getMode(cm.options, cm.doc.modeOption) resetModeState(...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/Display.js
src/display/Display.js
import { gecko, ie, ie_version, mobile, webkit, chrome, chrome_version } from "../util/browser.js" import { elt, eltP } from "../util/dom.js" import { scrollerGap } from "../util/misc.js" import { getGutters, renderGutters } from "./gutters.js" // The display handles the DOM integration, both for input reading // and ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/view_tracking.js
src/display/view_tracking.js
import { buildViewArray } from "../line/line_data.js" import { sawCollapsedSpans } from "../line/saw_special_spans.js" import { visualLineEndNo, visualLineNo } from "../line/spans.js" import { findViewIndex } from "../measurement/position_measurement.js" import { indexOf } from "../util/misc.js" // Updates the display...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/scroll_events.js
src/display/scroll_events.js
import { chrome, chrome_version, gecko, ie, mac, presto, safari, webkit } from "../util/browser.js" import { e_preventDefault } from "../util/event.js" import { updateDisplaySimple } from "./update_display.js" import { setScrollLeft, updateScrollTop } from "./scrolling.js" // Since the delta values reported on mouse ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/highlight_worker.js
src/display/highlight_worker.js
import { getContextBefore, highlightLine, processLine } from "../line/highlight.js" import { copyState } from "../modes.js" import { bind } from "../util/misc.js" import { runInOp } from "./operations.js" import { regLineChange } from "./view_tracking.js" // HIGHLIGHT WORKER export function startWorker(cm, time) { ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/scrollbars.js
src/display/scrollbars.js
import { addClass, elt, rmClass } from "../util/dom.js" import { on } from "../util/event.js" import { scrollGap, paddingVert } from "../measurement/position_measurement.js" import { ie, ie_version, mac, mac_geMountainLion } from "../util/browser.js" import { updateHeightsInViewport } from "./update_lines.js" import { ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/operations.js
src/display/operations.js
import { clipPos } from "../line/pos.js" import { findMaxLine } from "../line/spans.js" import { displayWidth, measureChar, scrollGap } from "../measurement/position_measurement.js" import { signal } from "../util/event.js" import { activeElt, root } from "../util/dom.js" import { finishOperation, pushOperation } from ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/gutters.js
src/display/gutters.js
import { elt, removeChildren } from "../util/dom.js" import { regChange } from "./view_tracking.js" import { alignHorizontally } from "./line_numbers.js" import { updateGutterSpace } from "./update_display.js" export function getGutters(gutters, lineNumbers) { let result = [], sawLineNumbers = false for (let i = 0...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/display/line_numbers.js
src/display/line_numbers.js
import { lineNumberFor } from "../line/utils_line.js" import { compensateForHScroll } from "../measurement/position_measurement.js" import { elt } from "../util/dom.js" import { updateGutterSpace } from "./update_display.js" // Re-align line numbers and gutter marks to compensate for // horizontal scrolling. export f...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/fromTextArea.js
src/edit/fromTextArea.js
import { CodeMirror } from "./CodeMirror.js" import { activeElt, rootNode } from "../util/dom.js" import { off, on } from "../util/event.js" import { copyObj } from "../util/misc.js" export function fromTextArea(textarea, options) { options = options ? copyObj(options) : {} options.value = textarea.value if (!op...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/methods.js
src/edit/methods.js
import { deleteNearSelection } from "./deleteNearSelection.js" import { commands } from "./commands.js" import { attachDoc } from "../model/document_data.js" import { activeElt, addClass, rmClass, root, win } from "../util/dom.js" import { eventMixin, signal } from "../util/event.js" import { getLineStyles, getContextB...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/main.js
src/edit/main.js
// EDITOR CONSTRUCTOR import { CodeMirror } from "./CodeMirror.js" export { CodeMirror } from "./CodeMirror.js" import { eventMixin } from "../util/event.js" import { indexOf } from "../util/misc.js" import { defineOptions } from "./options.js" defineOptions(CodeMirror) import addEditorMethods from "./methods.js" ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/mouse_events.js
src/edit/mouse_events.js
import { delayBlurEvent, ensureFocus } from "../display/focus.js" import { operation } from "../display/operations.js" import { visibleLines } from "../display/update_lines.js" import { clipPos, cmp, maxPos, minPos, Pos } from "../line/pos.js" import { getLine, lineAtHeight } from "../line/utils_line.js" import { posFr...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/CodeMirror.js
src/edit/CodeMirror.js
import { Display } from "../display/Display.js" import { onFocus, onBlur } from "../display/focus.js" import { maybeUpdateLineNumberWidth } from "../display/line_numbers.js" import { endOperation, operation, startOperation } from "../display/operations.js" import { initScrollbars } from "../display/scrollbars.js" impor...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/legacy.js
src/edit/legacy.js
import { scrollbarModel } from "../display/scrollbars.js" import { wheelEventPixels } from "../display/scroll_events.js" import { keyMap, keyName, isModifierKey, lookupKey, normalizeKeyMap } from "../input/keymap.js" import { keyNames } from "../input/keynames.js" import { Line } from "../line/line_data.js" import { cm...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/global_events.js
src/edit/global_events.js
import { onBlur } from "../display/focus.js" import { on } from "../util/event.js" // These must be handled carefully, because naively registering a // handler for each editor will cause the editors to never be // garbage collected. function forEachCodeMirror(f) { if (!document.getElementsByClassName) return let ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/commands.js
src/edit/commands.js
import { deleteNearSelection } from "./deleteNearSelection.js" import { runInOp } from "../display/operations.js" import { ensureCursorVisible } from "../display/scrolling.js" import { endOfLine } from "../input/movement.js" import { clipPos, Pos } from "../line/pos.js" import { visualLine, visualLineEnd } from "../lin...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/deleteNearSelection.js
src/edit/deleteNearSelection.js
import { runInOp } from "../display/operations.js" import { ensureCursorVisible } from "../display/scrolling.js" import { cmp } from "../line/pos.js" import { replaceRange } from "../model/changes.js" import { lst } from "../util/misc.js" // Helper for deleting text near the selection(s), used to implement // backspac...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/options.js
src/edit/options.js
import { onBlur } from "../display/focus.js" import { getGutters, updateGutters } from "../display/gutters.js" import { loadMode, resetModeState } from "../display/mode_state.js" import { initScrollbars, updateScrollbars } from "../display/scrollbars.js" import { updateSelection } from "../display/selection.js" import ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/drop_events.js
src/edit/drop_events.js
import { drawSelectionCursor } from "../display/selection.js" import { operation } from "../display/operations.js" import { clipPos } from "../line/pos.js" import { posFromMouse } from "../measurement/position_measurement.js" import { eventInWidget } from "../measurement/widgets.js" import { makeChange, replaceRange } ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/utils.js
src/edit/utils.js
import { clearCaches } from "../measurement/position_measurement.js" export function themeChanged(cm) { cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-") clearCaches(cm) }
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/edit/key_events.js
src/edit/key_events.js
import { signalLater } from "../util/operation_group.js" import { restartBlink } from "../display/selection.js" import { isModifierKey, keyName, lookupKey } from "../input/keymap.js" import { eventInWidget } from "../measurement/widgets.js" import { ie, ie_version, mac, presto, gecko } from "../util/browser.js" import ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/input/indent.js
src/input/indent.js
import { getContextBefore } from "../line/highlight.js" import { Pos } from "../line/pos.js" import { getLine } from "../line/utils_line.js" import { replaceRange } from "../model/changes.js" import { Range } from "../model/selection.js" import { replaceOneSelection } from "../model/selection_updates.js" import { count...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/input/keymap.js
src/input/keymap.js
import { flipCtrlCmd, mac, presto } from "../util/browser.js" import { map } from "../util/misc.js" import { keyNames } from "./keynames.js" export let keyMap = {} keyMap.basic = { "Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown", "End": "goLineEnd", "Home": "goLineStartSmart"...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/input/TextareaInput.js
src/input/TextareaInput.js
import { operation, runInOp } from "../display/operations.js" import { prepareSelection } from "../display/selection.js" import { applyTextInput, copyableRanges, handlePaste, hiddenTextarea, disableBrowserMagic, setLastCopied } from "./input.js" import { cursorCoords, posFromMouse } from "../measurement/position_measur...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/input/input.js
src/input/input.js
import { runInOp } from "../display/operations.js" import { ensureCursorVisible } from "../display/scrolling.js" import { Pos } from "../line/pos.js" import { getLine } from "../line/utils_line.js" import { makeChange } from "../model/changes.js" import { ios, webkit } from "../util/browser.js" import { elt } from "../...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/input/ContentEditableInput.js
src/input/ContentEditableInput.js
import { operation, runInOp } from "../display/operations.js" import { prepareSelection } from "../display/selection.js" import { regChange } from "../display/view_tracking.js" import { applyTextInput, copyableRanges, disableBrowserMagic, handlePaste, hiddenTextarea, lastCopied, setLastCopied } from "./input.js" import...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/input/movement.js
src/input/movement.js
import { Pos } from "../line/pos.js" import { prepareMeasureForLine, measureCharPrepared, wrappedLineExtentChar } from "../measurement/position_measurement.js" import { getBidiPartAt, getOrder } from "../util/bidi.js" import { findFirst, lst, skipExtendingChars } from "../util/misc.js" function moveCharLogically(line,...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/input/keynames.js
src/input/keynames.js
export let keyNames = { 3: "Pause", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert", 46: "Delete", 59:...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/measurement/widgets.js
src/measurement/widgets.js
import { contains, elt, removeChildrenAndAdd } from "../util/dom.js" import { e_target } from "../util/event.js" export function widgetHeight(widget) { if (widget.height != null) return widget.height let cm = widget.doc.cm if (!cm) return 0 if (!contains(document.body, widget.node)) { let parentStyle = "po...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/measurement/position_measurement.js
src/measurement/position_measurement.js
import { buildLineContent, LineView } from "../line/line_data.js" import { clipPos, Pos } from "../line/pos.js" import { collapsedSpanAround, heightAtLine, lineIsHidden, visualLine } from "../line/spans.js" import { getLine, lineAtHeight, lineNo, updateLineHeight } from "../line/utils_line.js" import { bidiOther, getBi...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/line/line_data.js
src/line/line_data.js
import { getOrder } from "../util/bidi.js" import { ie, ie_version, webkit } from "../util/browser.js" import { elt, eltP, joinClasses } from "../util/dom.js" import { eventMixin, signal } from "../util/event.js" import { hasBadBidiRects, zeroWidthElement } from "../util/feature_detection.js" import { lst, spaceStr } f...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/line/saw_special_spans.js
src/line/saw_special_spans.js
// Optimize some code when these features are not used. export let sawReadOnlySpans = false, sawCollapsedSpans = false export function seeReadOnlySpans() { sawReadOnlySpans = true } export function seeCollapsedSpans() { sawCollapsedSpans = true }
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/line/pos.js
src/line/pos.js
import { getLine } from "./utils_line.js" // A Pos instance represents a position within the text. export function Pos(line, ch, sticky = null) { if (!(this instanceof Pos)) return new Pos(line, ch, sticky) this.line = line this.ch = ch this.sticky = sticky } // Compare two positions, return 0 if they are the...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/line/utils_line.js
src/line/utils_line.js
import { indexOf } from "../util/misc.js" // Find the line object corresponding to the given line number. export function getLine(doc, n) { n -= doc.first if (n < 0 || n >= doc.size) throw new Error("There is no line " + (n + doc.first) + " in the document.") let chunk = doc while (!chunk.lines) { for (let...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/line/spans.js
src/line/spans.js
import { indexOf, lst } from "../util/misc.js" import { cmp } from "./pos.js" import { sawCollapsedSpans } from "./saw_special_spans.js" import { getLine, isLine, lineNo } from "./utils_line.js" // TEXTMARKER SPANS export function MarkedSpan(marker, from, to) { this.marker = marker this.from = from; this.to = to...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/src/line/highlight.js
src/line/highlight.js
import { countColumn } from "../util/misc.js" import { copyState, innerMode, startState } from "../modes.js" import StringStream from "../util/StringStream.js" import { getLine, lineNo } from "./utils_line.js" import { clipPos } from "./pos.js" class SavedContext { constructor(state, lookAhead) { this.state = s...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/driver.js
test/driver.js
var tests = [], filters = [], nameCounts = {}; function Failure(why) {this.message = why;} Failure.prototype.toString = function() { return this.message; }; function indexOf(collection, elt) { if (collection.indexOf) return collection.indexOf(elt); for (var i = 0, e = collection.length; i < e; ++i) if (collec...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/scroll_test.js
test/scroll_test.js
(function() { "use strict"; namespace = "scroll_"; testCM("bars_hidden", function(cm) { for (var i = 0;; i++) { var wrapBox = cm.getWrapperElement().getBoundingClientRect(); var scrollBox = cm.getScrollerElement().getBoundingClientRect(); is(wrapBox.bottom < scrollBox.bottom - 10); i...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/mode_test.js
test/mode_test.js
/** * Helper to test CodeMirror highlighting modes. It pretty prints output of the * highlighter and can check against expected styles. * * Mode tests are registered by calling test.mode(testName, mode, * tokens), where mode is a mode object as returned by * CodeMirror.getMode, and tokens is an array of lines tha...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/contenteditable_test.js
test/contenteditable_test.js
(function() { "use strict"; namespace = "contenteditable_"; var Pos = CodeMirror.Pos function findTextNode(dom, text) { if (dom instanceof CodeMirror) dom = dom.getInputField() if (dom.nodeType == 1) { for (var ch = dom.firstChild; ch; ch = ch.nextSibling) { var found = findTextNode(ch, ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/multi_test.js
test/multi_test.js
(function() { namespace = "multi_"; function hasSelections(cm) { var sels = cm.listSelections(); var given = (arguments.length - 1) / 4; if (sels.length != given) throw new Failure("expected " + given + " selections, found " + sels.length); for (var i = 0, p = 1; i < given; i++, p += 4) { ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/emacs_test.js
test/emacs_test.js
(function() { "use strict"; var Pos = CodeMirror.Pos; namespace = "emacs_"; var eventCache = {}; function fakeEvent(keyName) { var event = eventCache[key]; if (event) return event; var ctrl, shift, alt; var key = keyName.replace(/\w+-/g, function(type) { if (type == "Ctrl-") ctrl = tr...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/test.js
test/test.js
var Pos = CodeMirror.Pos; CodeMirror.defaults.rtlMoveVisually = true; function forEach(arr, f) { for (var i = 0, e = arr.length; i < e; ++i) f(arr[i], i); } function addDoc(cm, width, height) { var content = [], line = ""; for (var i = 0; i < width; ++i) line += "x"; for (var i = 0; i < height; ++i) content....
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
true
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/lint.js
test/lint.js
var blint = require("blint"); ["mode", "lib", "addon", "keymap"].forEach(function(dir) { blint.checkDir(dir, { browser: true, allowedGlobals: ["CodeMirror", "define", "test", "requirejs", "globalThis", "WeakSet"], ecmaVersion: 5, tabs: dir == "lib" }); }); ["src"].forEach(function(dir) { blint.c...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/comment_test.js
test/comment_test.js
namespace = "comment_"; (function() { function test(name, mode, run, before, after) { return testCM(name, function(cm) { run(cm); eq(cm.getValue(), after); }, {value: before, mode: mode}); } var simpleProg = "function foo() {\n return bar;\n}"; var inlineBlock = "foo(/* bar */ true);"; ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/annotatescrollbar.js
test/annotatescrollbar.js
namespace = "annotatescrollbar_"; (function () { function test(name, run, content, query, expected) { return testCM(name, function (cm) { var annotation = cm.annotateScrollbar({ listenForChanges: false, className: "CodeMirror-search-match" }); var matches = []; var cursor ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/search_test.js
test/search_test.js
(function() { "use strict"; function run(doc, query, options) { var cursor = doc.getSearchCursor(query, null, options); for (var i = 3; i < arguments.length; i += 4) { var found = cursor.findNext(); is(found, "not enough results (forward)"); eqCharPos(Pos(arguments[i], arguments[i + 1]), ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/html-hint-test.js
test/html-hint-test.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function() { var Pos = CodeMirror.Pos; namespace = "html-hint_"; testData =[ { name: "html-element", value: "<htm", list: ["<html"] }, { name: "...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/run.js
test/run.js
#!/usr/bin/env node var lint = require("./lint"); var files = new (require('node-static').Server)(); var server = require('http').createServer(function (req, res) { req.addListener('end', function () { files.serve(req, res, function (err/*, result */) { if (err) { console.error(err); proc...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/sql-hint-test.js
test/sql-hint-test.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function() { var Pos = CodeMirror.Pos; var simpleTables = { "users": ["name", "score", "birthDate"], "xcountries": ["name", "population", "size"] }; var schemaTables = { ...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/doc_test.js
test/doc_test.js
(function() { // A minilanguage for instantiating linked CodeMirror instances and Docs function instantiateSpec(spec, place, opts) { var names = {}, pos = 0, l = spec.length, editors = []; while (spec) { var m = spec.match(/^(\w+)(\*?)(?:='([^\']*)'|<(~?)(\w+)(?:\/(\d+)-(\d+))?)\s*/); var name =...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/test/sublime_test.js
test/sublime_test.js
(function() { "use strict"; var Pos = CodeMirror.Pos; namespace = "sublime_"; function stTest(name) { var actions = Array.prototype.slice.call(arguments, 1); testCM(name, function(cm) { for (var i = 0; i < actions.length; i++) { var action = actions[i]; if (typeof action == "st...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/bin/upload-release.js
bin/upload-release.js
"use strict" let version = process.argv[2] let auth = process.argv[3] let url = require("url") if (!auth) { console.log("Usage: upload-release.js [TAG] [github-user:password]") process.exit(1) } function post(host, path, body) { let req = require("https").request({ host, auth: auth, headers: {"user...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/keymap/sublime.js
keymap/sublime.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // A rough approximation of Sublime Text's keybindings // Depends on addon/search/searchcursor.js and optionally addon/dialog/dialogs.js (function(mod) { if (typeof exports == "object" &...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/keymap/emacs.js
keymap/emacs.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
codemirror/codemirror5
https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/doc/activebookmark.js
doc/activebookmark.js
// Kludge in HTML5 tag recognition in IE8 document.createElement("section"); document.createElement("article"); (function() { if (!window.addEventListener) return; var pending = false, prevVal = null; function updateSoon() { if (!pending) { pending = true; setTimeout(update, 250); } } f...
javascript
MIT
78555dd4ac9bc691f081eec8266a01d3fbcc0d4e
2026-01-04T15:02:45.128819Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/commitlint.config.js
commitlint.config.js
module.exports = { extends: ['@commitlint/config-conventional'], };
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/utils.js
test/utils.js
'use strict'; var fork = require('child_process').fork, path = require('path'), appjs = path.resolve(__dirname, 'fixtures', 'app.js'), assert = require('assert'), port = 8000, appcoffee = path.resolve(__dirname, 'fixtures', 'app.coffee'); function asCLI(cmd) { return { exec: 'bin/nodemon.js',...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/misc/sigint.test.js
test/misc/sigint.test.js
'use strict'; /*global describe:true, it: true */ var utils = require('../utils'), assert = require('assert'), path = require('path'), appjs = path.relative(process.cwd(), path.resolve(__dirname, '..', 'fixtures', 'sigint.js')), match = utils.match, cleanup = utils.cleanup, run = utils.run, ...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/misc/listeners.test.js
test/misc/listeners.test.js
/*global describe, it, beforeEach */ var nodemon = require('../../lib/'); var assert = require('assert'); var path = require('path'); var dir = path.resolve(__dirname, '..', 'fixtures', 'events'); var appjs = path.resolve(dir, 'env.js'); var async = require('async'); describe('listeners clean up', function () { fun...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/help/help.test.js
test/help/help.test.js
/*global describe:true, it: true */ var help = require('../../lib/help'), assert = require('assert'); describe('help', function () { it('should load index by default', function () { var page = help(); assert(page.indexOf('Usage: nodemon') !== -1, 'shows default help page'); }); it('should load speci...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fork/change-detect.test.js
test/fork/change-detect.test.js
'use strict'; /*global describe:true, it: true */ var utils = require('../utils'), colour = require('../../lib/utils/colour'), assert = require('assert'), touch = require('touch'), appjs = utils.appjs, appcoffee = utils.appcoffee, match = utils.match, cleanup = utils.cleanup, run = utils.run; describe(...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fork/run-mac-only.test.js
test/fork/run-mac-only.test.js
const fs = require('fs'); const assert = require('assert'); const utils = require('../utils'); const appJS = utils.appjs; const run = utils.run; const filenames = [ [__dirname + 'some\\\"file', '#!/usr/bin/env node\nconsole.log("OK");'], [__dirname + 'some\ \\file', '#!/bin/sh\necho "OK"'], ]; if (false && !proce...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fork/watch-restart.test.js
test/fork/watch-restart.test.js
'use strict'; /*global describe:true, it: true, after: true */ var assert = require('assert'), fs = require('fs'), utils = require('../utils'), colour = require('../../lib/utils/colour'), appjs = utils.appjs, // appcoffee = utils.appcoffee, run = utils.run, cleanup = utils.cleanup, path ...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fork/config.test.js
test/fork/config.test.js
'use strict'; /*global describe:true, it: true, afterEach:true, beforeEach:true */ var assert = require('assert'), utils = require('../utils'), path = require('path'), match = utils.match, cleanup = utils.cleanup, run = utils.run; describe('nodemon full config test', function () { var pwd = proce...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fork/run.test.js
test/fork/run.test.js
/*global describe:true, it: true */ var assert = require('assert'), utils = require('../utils'), appjs = utils.appjs, run = utils.run; describe('nodemon fork', function () { it('should not show user-signal', done => { var p = run({ exec: 'bin/nodemon.js', args: [ '-V', '-x', 'echo running && sleep 20' ...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/env.js
test/fixtures/env.js
console.log(process.env.NODEMON_ENV);
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/repl.js
test/fixtures/repl.js
var repl = require('repl'); // Start Express or something, when it's up, startup the REPL var rpl = repl.start('REPL> '); rpl.commands['.hello'] = { help: 'Hello world command.', action: function() { console.log('Hello world.'); } };
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/app.js
test/fixtures/app.js
// process.title = 'node (fixtures/app)'; // console.log('starting up @ ' + (process.env.PORT || 8000)); require('http').createServer(function (req, res) { console.log('Request in'); res.end('ok'); }).listen(process.env.PORT || 8000); process.on('SIGINT', function() { process.exit(130) })
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/app with spaces.js
test/fixtures/app with spaces.js
#!/usr/bin/env node console.log(process.argv[2] || 'OK'); require('http').createServer(function (req, res) { console.log('Request in'); res.end('ok'); }).listen(process.env.PORT || 8000);
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/sigint.js
test/fixtures/sigint.js
process.on('SIGINT', function() { if (process.argv.length === 3 && process.argv[2] === '--dont-exit') return; process.exit(); }); // timer, to keep process running setInterval(function() { // console.log('working'); }, 1000);
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/1246/app/index.js
test/fixtures/1246/app/index.js
require('http').createServer((req, res) => res.end('ok')).listen(8000);
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/1246/watching/index.js
test/fixtures/1246/watching/index.js
require('http').createServer((req, res) => res.end('ok')).listen(8000);
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/index.js
test/fixtures/watch-count/index.js
true;
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/index.js
test/fixtures/watch-count/node_modules/express/index.js
module.exports = require('./lib/express');
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/finalhandler/index.js
test/fixtures/watch-count/node_modules/express/node_modules/finalhandler/index.js
/*! * finalhandler * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /** * Module dependencies. */ var debug = require('debug')('finalhandler') var escapeHtml = require('escape-html') var http = require('http') var onFinished = require('on-finished') /** * Variables. */ /* istanbul ignore nex...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/serve-static/index.js
test/fixtures/watch-count/node_modules/express/node_modules/serve-static/index.js
/*! * serve-static * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /** * Module dependencies. */ var escapeHtml = require('escape-html'); var merge = require('utils-merge'); var parseurl = require('parseurl'); var resolve = re...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/escape-html/index.js
test/fixtures/watch-count/node_modules/express/node_modules/escape-html/index.js
/** * Escape special characters in the given string of html. * * @param {String} html * @return {String} * @api private */ module.exports = function(html) { return String(html) .replace(/&/g, '&amp;') .replace(/"/g, '&quot;') .replace(/'/g, '&#39;') .replace(/</g, '&lt;') .replace(/>/g, '&...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/depd/index.js
test/fixtures/watch-count/node_modules/express/node_modules/depd/index.js
/*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /** * Module dependencies. */ var callSiteToString = require('./lib/compat').callSiteToString var EventEmitter = require('events').EventEmitter var relative = require('path').relative /** * Module exports. */ module.exports = depd ...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
test/fixtures/watch-count/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
/*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /** * Module exports. */ module.exports = bufferConcat /** * Concatenate an array of Buffers. */ function bufferConcat(bufs) { var length = 0 for (var i = 0, len = bufs.length; i < len; i++) { length += bufs[i].length } ...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/depd/lib/compat/index.js
test/fixtures/watch-count/node_modules/express/node_modules/depd/lib/compat/index.js
/*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /** * Module exports. */ lazyProperty(module.exports, 'bufferConcat', function bufferConcat() { return Buffer.concat || require('./buffer-concat') }) lazyProperty(module.exports, 'callSiteToString', function callSiteToString() { va...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/depd/lib/compat/callsite-tostring.js
test/fixtures/watch-count/node_modules/express/node_modules/depd/lib/compat/callsite-tostring.js
/*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /** * Module exports. */ module.exports = callSiteToString /** * Format a CallSite file location to a string. */ function callSiteFileLocation(callSite) { var fileName var fileLocation = '' if (callSite.isNative()) { file...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false
remy/nodemon
https://github.com/remy/nodemon/blob/8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1/test/fixtures/watch-count/node_modules/express/node_modules/range-parser/index.js
test/fixtures/watch-count/node_modules/express/node_modules/range-parser/index.js
/** * Parse "Range" header `str` relative to the given file `size`. * * @param {Number} size * @param {String} str * @return {Array} * @api public */ module.exports = function(size, str){ var valid = true; var i = str.indexOf('='); if (-1 == i) return -2; var arr = str.slice(i + 1).split(',').map(fun...
javascript
MIT
8af1e0e4a7dde1c984f457bbe2cbb9342b13f8c1
2026-01-04T15:03:44.665963Z
false