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
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/next-js/pages/_document.js
examples/next-js/pages/_document.js
import React from 'react'; import Document, { Head, Main, NextScript } from 'next/document'; export default class MyDocument extends Document { render() { return ( <html lang="en"> <Head> <script dangerouslySetInnerHTML={{ __html: ` var _rollbarConf...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/next-js/pages/index.js
examples/next-js/pages/index.js
import React from 'react' import Head from 'next/head' import Nav from '../components/nav' const Home = () => ( <div> <Head> <title>Home</title> <link rel="icon" href="/favicon.ico" /> </Head> <Nav /> <div className="hero"> <h1 className="title">Welcome to Next.js!</h1> <p c...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/next-js/components/nav.js
examples/next-js/components/nav.js
import React from 'react' import Link from 'next/link' const links = [ { href: 'https://zeit.co/now', label: 'ZEIT' }, { href: 'https://github.com/zeit/next.js', label: 'GitHub' }, ].map(link => ({ ...link, key: `nav-link-${link.href}-${link.label}`, })) const Nav = () => ( <nav> <ul> <li> ...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/react/index.js
examples/react/index.js
require('@babel/register'); require('./server');
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/react/webpack.config.js
examples/react/webpack.config.js
require('dotenv').config(); const path = require('path'); const cp = require('child_process'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const S3Plugin = require('webpack-s3-plugin'); const RollbarSourcemapPlugin = require('../../dist/RollbarSourceMapPlugin'); const...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/react/src/index.js
examples/react/src/index.js
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; import rollbar from './rollbar'; window.Rollbar = rollbar; render(<App />, document.getElementById('root'));
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/react/src/rollbar.js
examples/react/src/rollbar.js
import rollbar from 'rollbar'; export default rollbar.init({ accessToken: __ROLLBAR_ACCESS_TOKEN__, captureUncaught: true, payload: { environment: process.env.NODE_ENV, client: { javascript: { source_map_enabled: true, code_version: __GIT_REVISION__, // Optionally have Rollb...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/react/src/components/App.js
examples/react/src/components/App.js
import React, { Component } from 'react'; class App extends Component { render() { try { throw new Error('Something went wrong'); } catch (e) { console.error(e); window.Rollbar.error(e); } return ( <div>RollbarSourceMapPlugin - React example</div> ); } } export default...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/react/server/index.js
examples/react/server/index.js
// require('babel-register'); // if (!process.env.NODE_ENV) { // process.env.NODE_ENV = 'development'; // } // if (process.env.NODE_ENV === 'development') { // module.exports = require('./development'); // } else { // module.exports = require('./production'); // } import express from 'express'; import path fro...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
realyze/pr-train
https://github.com/realyze/pr-train/blob/190da461efe60909985ed932005a1a140295fc86/consts.js
consts.js
module.exports = { DEFAULT_REMOTE: 'origin', DEFAULT_BASE_BRANCH: 'master', MERGE_STEP_DELAY_MS: 1000, MERGE_STEP_DELAY_WAIT_FOR_LOCK: 2500, }
javascript
MIT
190da461efe60909985ed932005a1a140295fc86
2026-01-05T03:41:24.430434Z
false
realyze/pr-train
https://github.com/realyze/pr-train/blob/190da461efe60909985ed932005a1a140295fc86/index.js
index.js
#!/usr/bin/env node // @ts-check const simpleGit = require('simple-git/promise'); const difference = require('lodash.difference'); const program = require('commander'); const emoji = require('node-emoji'); const fs = require('fs'); const yaml = require('js-yaml'); const { ensurePrsExist, readGHKey, checkGHKeyExists } ...
javascript
MIT
190da461efe60909985ed932005a1a140295fc86
2026-01-05T03:41:24.430434Z
false
realyze/pr-train
https://github.com/realyze/pr-train/blob/190da461efe60909985ed932005a1a140295fc86/github.js
github.js
// @ts-check const octo = require('octonode'); const promptly = require('promptly'); const { DEFAULT_REMOTE, DEFAULT_BASE_BRANCH } = require('./consts'); const fs = require('fs'); const get = require('lodash/get'); const colors = require('colors'); const emoji = require('node-emoji'); const width = require('string-...
javascript
MIT
190da461efe60909985ed932005a1a140295fc86
2026-01-05T03:41:24.430434Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/abstract-chained-batch.js
abstract-chained-batch.js
'use strict' const emptyOptions = Object.freeze({}) function AbstractChainedBatch (db) { if (typeof db !== 'object' || db === null) { throw new TypeError('First argument must be an abstract-leveldown compliant store') } this.db = db this._operations = [] this._written = false } AbstractChainedBatch.pr...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/index.js
index.js
'use strict' exports.AbstractLevelDOWN = require('./abstract-leveldown') exports.AbstractIterator = require('./abstract-iterator') exports.AbstractChainedBatch = require('./abstract-chained-batch')
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/next-tick.js
next-tick.js
'use strict' module.exports = process.nextTick
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/abstract-iterator.js
abstract-iterator.js
'use strict' function AbstractIterator (db) { if (typeof db !== 'object' || db === null) { throw new TypeError('First argument must be an abstract-leveldown compliant store') } this.db = db this._ended = false this._nexting = false } AbstractIterator.prototype.next = function (callback) { // In callb...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/abstract-leveldown.js
abstract-leveldown.js
'use strict' const supports = require('level-supports') const isBuffer = require('is-buffer') const catering = require('catering') const AbstractIterator = require('./abstract-iterator') const AbstractChainedBatch = require('./abstract-chained-batch') const getCallback = require('./lib/common').getCallback const getOp...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/next-tick-browser.js
next-tick-browser.js
'use strict' const queueMicrotask = require('queue-microtask') module.exports = function (fn, ...args) { if (args.length === 0) { queueMicrotask(fn) } else { queueMicrotask(() => fn(...args)) } }
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/get-test.js
test/get-test.js
'use strict' const isBuffer = require('is-buffer') const verifyNotFoundError = require('./util').verifyNotFoundError const isTypedArray = require('./util').isTypedArray let db exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) test('setUp db', function (t) { db = testCommon....
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/iterator-snapshot-test.js
test/iterator-snapshot-test.js
'use strict' exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) } exports.snapshot = function (test, testCommon) { function make (run) { return function (t) { const db = testCommon.factory() db.open(function (err) { t.ifError(err, 'no open error') ...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/iterator-test.js
test/iterator-test.js
'use strict' let db exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) test('setUp db', function (t) { db = testCommon.factory() db.open(t.end.bind(t)) }) } exports.args = function (test, testCommon) { test('test iterator has db reference', function (t) { const i...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/iterator-seek-test.js
test/iterator-seek-test.js
'use strict' exports.all = function (test, testCommon) { exports.setUp(test, testCommon) exports.sequence(test, testCommon) exports.seek(test, testCommon) exports.tearDown(test, testCommon) } exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) } exports.sequence = function ...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/close-test.js
test/close-test.js
'use strict' let db exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) test('setUp db', function (t) { db = testCommon.factory() db.open(t.end.bind(t)) }) } exports.close = function (test, testCommon) { test('test close()', function (t) { testCommon.promises || t...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/open-test.js
test/open-test.js
'use strict' exports.setUp = function (test, testCommon) { test('setUp', testCommon.setUp) } exports.args = function (test, testCommon) { testCommon.promises || test('test database open no-arg throws', function (t) { const db = testCommon.factory() t.throws( db.open.bind(db), /Error: open\(\) ...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/open-create-if-missing-test.js
test/open-create-if-missing-test.js
'use strict' exports.setUp = function (test, testCommon) { test('setUp', testCommon.setUp) } exports.createIfMissing = function (test, testCommon) { test('test database open createIfMissing:false', function (t) { const db = testCommon.factory() let async = false db.open({ createIfMissing: false }, fu...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/index.js
test/index.js
'use strict' const common = require('./common') function suite (options) { const testCommon = common(options) const test = testCommon.test require('./factory-test')(test, testCommon) require('./manifest-test')(test, testCommon) require('./leveldown-test')(test, testCommon) require('./open-test').all(tes...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/chained-batch-test.js
test/chained-batch-test.js
'use strict' const collectEntries = require('level-concat-iterator') let db function collectBatchOps (batch) { const _put = batch._put const _del = batch._del const _operations = [] if (typeof _put !== 'function' || typeof _del !== 'function') { return batch._operations } batch._put = function (key...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/common.js
test/common.js
'use strict' function testCommon (options) { const factory = options.factory const test = options.test if (typeof factory !== 'function') { throw new TypeError('factory must be a function') } if (typeof test !== 'function') { throw new TypeError('test must be a function') } if (options.legacyR...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/put-test.js
test/put-test.js
'use strict' const isTypedArray = require('./util').isTypedArray let db exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) test('setUp db', function (t) { db = testCommon.factory() db.open(t.end.bind(t)) }) } exports.args = function (test, testCommon) { testCommon.p...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/manifest-test.js
test/manifest-test.js
'use strict' const suite = require('level-supports/test') module.exports = function (test, testCommon) { test('setUp common', testCommon.setUp) suite(test, testCommon) testCommon.status && test('manifest has status', function (t) { const db = testCommon.factory() t.is(db.supports.status, true) //...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/clear-range-test.js
test/clear-range-test.js
'use strict' const concat = require('level-concat-iterator') const data = (function () { const d = [] let i = 0 let k for (; i < 100; i++) { k = (i < 10 ? '0' : '') + i d.push({ key: k, value: String(Math.random()) }) } return d }()) exports.setUp = function (test, testCommon) { ...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/iterator-no-snapshot-test.js
test/iterator-no-snapshot-test.js
'use strict' const collectEntries = require('level-concat-iterator') exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) } exports.noSnapshot = function (test, testCommon) { function make (run) { return function (t) { const db = testCommon.factory() const operatio...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/clear-test.js
test/clear-test.js
'use strict' const concat = require('level-concat-iterator') let db exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) test('setUp db', function (t) { db = testCommon.factory() db.open(t.end.bind(t)) }) } exports.args = function (test, testCommon) { testCommon.promis...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/async-iterator-test.js
test/async-iterator-test.js
'use strict' const input = [{ key: '1', value: '1' }, { key: '2', value: '2' }] let db exports.setup = function (test, testCommon) { test('setup', function (t) { t.plan(2) db = testCommon.factory() db.open(function (err) { t.ifError(err, 'no open() error') db.batch(input.map(entry => ({ ....
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/iterator-range-test.js
test/iterator-range-test.js
'use strict' const collectEntries = require('level-concat-iterator') let db const data = (function () { const d = [] let i = 0 let k for (; i < 100; i++) { k = (i < 10 ? '0' : '') + i d.push({ key: k, value: String(Math.random()) }) } return d }()) exports.setUp = function (test,...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/factory-test.js
test/factory-test.js
'use strict' const concat = require('level-concat-iterator') module.exports = function (test, testCommon) { test('setUp common', testCommon.setUp) test('testCommon.factory() returns a unique database', function (t) { const db1 = testCommon.factory() const db2 = testCommon.factory() function close ()...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/del-test.js
test/del-test.js
'use strict' const verifyNotFoundError = require('./util').verifyNotFoundError let db exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) test('setUp db', function (t) { db = testCommon.factory() db.open(t.end.bind(t)) }) } exports.args = function (test, testCommon) { ...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/self.js
test/self.js
'use strict' const test = require('tape') const sinon = require('sinon') const inherits = require('util').inherits const AbstractLevelDOWN = require('../').AbstractLevelDOWN const AbstractIterator = require('../').AbstractIterator const AbstractChainedBatch = require('../').AbstractChainedBatch const testCommon = req...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
true
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/open-error-if-exists-test.js
test/open-error-if-exists-test.js
'use strict' exports.setUp = function (test, testCommon) { test('setUp', testCommon.setUp) } exports.errorIfExists = function (test, testCommon) { test('test database open errorIfExists:true', function (t) { const db = testCommon.factory() db.open({}, function (err) { t.error(err) db.close(fu...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/put-get-del-test.js
test/put-get-del-test.js
'use strict' const verifyNotFoundError = require('./util').verifyNotFoundError const assertAsync = require('./util').assertAsync const testBuffer = Buffer.from('testbuffer') let db function makeGetDelErrorTests (test, testCommon, type, key, expectedError) { test('test get() with ' + type + ' causes error', functio...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/batch-test.js
test/batch-test.js
'use strict' const verifyNotFoundError = require('./util').verifyNotFoundError const isTypedArray = require('./util').isTypedArray let db exports.setUp = function (test, testCommon) { test('setUp common', testCommon.setUp) test('setUp db', function (t) { db = testCommon.factory() db.open(t.end.bind(t)) ...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/util.js
test/util.js
'use strict' const nfre = /NotFound/i const spies = [] exports.verifyNotFoundError = function verifyNotFoundError (err) { return nfre.test(err.message) || nfre.test(err.name) } exports.isTypedArray = function isTypedArray (value) { return (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) || ...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/leveldown-test.js
test/leveldown-test.js
'use strict' module.exports = function (test, testCommon) { test('setUp common', testCommon.setUp) test('test database open method exists', function (t) { const db = testCommon.factory() t.ok(db, 'database object returned') t.ok(typeof db.open === 'function', 'open() function exists') t.end() })...
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/test/get-many-test.js
test/get-many-test.js
'use strict' const isBuffer = require('is-buffer') const isTypedArray = require('./util').isTypedArray const assertAsync = require('./util').assertAsync let db /** * @param {import('tape')} test */ exports.setUp = function (test, testCommon) { test('setUp db', function (t) { db = testCommon.factory() db....
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
Level/abstract-leveldown
https://github.com/Level/abstract-leveldown/blob/2d12fed24065a214759f358a234417cca0962f4c/lib/common.js
lib/common.js
'use strict' exports.getCallback = function (options, callback) { return typeof options === 'function' ? options : callback } exports.getOptions = function (options) { return typeof options === 'object' && options !== null ? options : {} }
javascript
MIT
2d12fed24065a214759f358a234417cca0962f4c
2026-01-05T03:41:28.689311Z
false
sindresorhus/terminal-size
https://github.com/sindresorhus/terminal-size/blob/e2393bccff7175e3740492b253ca967601aab22d/index.js
index.js
import process from 'node:process'; import {execFileSync} from 'node:child_process'; import fs from 'node:fs'; import tty from 'node:tty'; const defaultColumns = 80; const defaultRows = 24; const exec = (command, arguments_, {shell, env} = {}) => execFileSync(command, arguments_, { encoding: 'utf8', stdio: ['ign...
javascript
MIT
e2393bccff7175e3740492b253ca967601aab22d
2026-01-05T03:41:30.059301Z
false
sindresorhus/terminal-size
https://github.com/sindresorhus/terminal-size/blob/e2393bccff7175e3740492b253ca967601aab22d/test.js
test.js
import process from 'node:process'; import test from 'ava'; import {execa} from 'execa'; import terminalSize from './index.js'; test('main', t => { const size = terminalSize(); console.log('Main size:', size); t.true(size.columns > 0); t.true(size.rows > 0); }); test('child', async t => { const {stdout} = await ...
javascript
MIT
e2393bccff7175e3740492b253ca967601aab22d
2026-01-05T03:41:30.059301Z
false
sindresorhus/terminal-size
https://github.com/sindresorhus/terminal-size/blob/e2393bccff7175e3740492b253ca967601aab22d/fixture.js
fixture.js
import terminalSize from './index.js'; const {columns, rows} = terminalSize(); console.log(`${columns}\n${rows}`);
javascript
MIT
e2393bccff7175e3740492b253ca967601aab22d
2026-01-05T03:41:30.059301Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/.lintstagedrc.js
.lintstagedrc.js
module.exports = { "*.md,!test/**/*.md": [ filenames => filenames.map(filename => `remark ${filename} -qfo`) ], 'package.json': 'fixpack', '*.js': 'xo --fix' };
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/benchmark/constraint/next-bench.js
benchmark/constraint/next-bench.js
const Benchmark = require('benchmark'); const later = require('../..'); const suite = new Benchmark.Suite('next'); suite .add('year', function () { later.year.next(new Date(2012, 4, 15, 20, 15, 13), 2014); }) .add('month', function () { later.month.next(new Date(2012, 4, 15, 20, 15, 13), 1); }) .add(...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/benchmark/constraint/val-bench.js
benchmark/constraint/val-bench.js
const Benchmark = require('benchmark'); const later = require('../..'); const suite = new Benchmark.Suite('val'); suite /* .add('year', function() { later.year.val(new Date(2012, 4, 15, 20, 15, 13)); }) .add('month', function() { later.month.val(new Date(2012, 4, 15, 20, 15, 13)); }) .add('day', function() { l...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/benchmark/core/schedule-bench.js
benchmark/core/schedule-bench.js
const Benchmark = require('benchmark'); const later = require('../..'); const suite = new Benchmark.Suite('next'); const schedSimple = later.parse.cron('* */5 * * * *'); const compiledSimple = later.schedule(schedSimple); const schedComplex = later.parse.cron('0 5 15W * ?'); const compiledComplex = later.schedule(sch...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/src/index.js
src/index.js
const pkg = require('../package.json'); const later = { version: pkg.version }; later.array = {}; later.array.sort = function (array, zeroIsLast) { array.sort(function (a, b) { return Number(a) - Number(b); }); if (zeroIsLast && array[0] === 0) { array.push(array.shift()); } }; later.array.next = f...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
true
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/issues/occurences-next-test.js
test/issues/occurences-next-test.js
const later = require('../..'); const { schedule } = later; const should = require('should'); /* describe('Schedule', function () { later.date.UTC(); describe('next', function () { const d = new Date('2021-01-01T00:00:00Z'); const e = new Date('2016-01-01T00:00:00Z'); it('should return next three (3)...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/parse/cron-test.js
test/parse/cron-test.js
const parse = require('../..').parse.cron; const should = require('should'); const semver = require('semver'); describe('Parse Cron', function () { describe('seconds', function () { it('should parse all asterisk to mean every second', function () { const p = parse('* * * * * *', true); p.schedules[0]...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/parse/recur-test.js
test/parse/recur-test.js
const { recur } = require('../..').parse; const should = require('should'); describe('Parse Recur', function () { describe('time periods', function () { it('should store second constraints with name s', function () { const r = recur().on(1).second(); r.schedules[0].should.eql({ s: [1] }); }); ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/parse/text-test.js
test/parse/text-test.js
const parse = require('../..').parse.text; const should = require('should'); describe('Parse Text', function () { describe('every', function () { it('should parse every second restriction', function () { const p = parse('every 15 s'); p.schedules[0].should.have.ownProperty('s'); p.schedules[0]....
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/month-test.js
test/constraint/month-test.js
const later = require('../..'); const runner = require('./runner')(later, later.month); const should = require('should'); describe('Later.month', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 1, extent: [1, 12], start: new Date(2008, 0, 1),...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/day-test.js
test/constraint/day-test.js
const later = require('../..'); const runner = require('./runner')(later, later.day); const should = require('should'); describe('Later.day', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 1, extent: [1, 31], start: new Date(2008, 0, 1), ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/second-test.js
test/constraint/second-test.js
const later = require('../..'); const runner = require('./runner')(later, later.second); const should = require('should'); describe('Later.second', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 0, extent: [0, 59], start: new Date(2008, 0, 1...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/runner.js
test/constraint/runner.js
const should = require('should'); function runner(later, constraint) { function convertToUTC(d) { return new Date( Date.UTC( d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds() ) ); } function runSingleTest(...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/dayofweek-test.js
test/constraint/dayofweek-test.js
const later = require('../..'); const runner = require('./runner')(later, later.dayOfWeek); const should = require('should'); describe('Later.dayOfWeek', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 3, extent: [1, 7], start: new Date(2008,...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/weekofmonth-test.js
test/constraint/weekofmonth-test.js
const later = require('../..'); const runner = require('./runner')(later, later.weekOfMonth); const should = require('should'); describe('Later.weekOfMonth', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 1, extent: [1, 5], start: new Date(2...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/minute-test.js
test/constraint/minute-test.js
const later = require('../..'); const runner = require('./runner')(later, later.minute); const should = require('should'); describe('Later.minute', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 0, extent: [0, 59], start: new Date(2008, 0, 1...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/year-test.js
test/constraint/year-test.js
const later = require('../..'); const runner = require('./runner')(later, later.year); const should = require('should'); describe('Later.year', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 2008, extent: [1970, 2099], start: new Date(2008, ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/dayofweekcount-test.js
test/constraint/dayofweekcount-test.js
const later = require('../..'); const runner = require('./runner')(later, later.dayOfWeekCount); const should = require('should'); describe('Later.dayOfWeekCount', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 1, extent: [1, 5], start: new ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/dayofyear-test.js
test/constraint/dayofyear-test.js
const later = require('../..'); const runner = require('./runner')(later, later.dayOfYear); const should = require('should'); describe('Later.dayOfYear', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 1, extent: [1, 366], start: new Date(200...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/time-test.js
test/constraint/time-test.js
const later = require('../..'); const runner = require('./runner')(later, later.time); const should = require('should'); describe('Later.time', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 0, extent: [0, 86399], start: new Date(2008, 0, 1)...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/weekofyear-test.js
test/constraint/weekofyear-test.js
const later = require('../..'); const runner = require('./runner')(later, later.weekOfYear); const should = require('should'); describe('Later.weekOfYear', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 1, extent: [1, 52], start: new Date(20...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/constraint/hour-test.js
test/constraint/hour-test.js
const later = require('../..'); const runner = require('./runner')(later, later.hour); const should = require('should'); describe('Later.hour', function () { const tests = [ { // first second of year date: new Date(2008, 0, 1), val: 0, extent: [0, 23], start: new Date(2008, 0, 1), ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/modifier/after-test.js
test/modifier/after-test.js
const later = require('../..'); const should = require('should'); describe('Modifier After', function () { describe('name', function () { it('should append "after" before a minute constraint', function () { later.date.UTC(); const after = later.modifier.after(later.m, [15]); after.name.should.e...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/modifier/before-test.js
test/modifier/before-test.js
const later = require('../..'); const should = require('should'); describe('Modifier Before', function () { describe('name', function () { it('should append "before" before a minute constraint', function () { later.date.UTC(); const before = later.modifier.before(later.m, [15]); before.name.sho...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/example/recur-example-test.js
test/example/recur-example-test.js
const later = require('../..'); const should = require('should'); describe('Recur Examples', function () { describe('instances', function () { it('At 11:30am on March 21, 2013', function () { later.date.UTC(); const sched = later.parse .recur() .on(new Date(Date.UTC(2013, 2, 21, 11, ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/example/cron-example-test.js
test/example/cron-example-test.js
const later = require('../..'); const should = require('should'); describe('Cron Examples', function () { it('Fire at 12pm (noon) every day', function () { later.date.UTC(); const sched = later.parse.cron('0 0 12 * * ?', true); const start = new Date('2013-03-21T03:05:23Z'); const end = new Date('2...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/example/text-example-test.js
test/example/text-example-test.js
const later = require('../..'); const should = require('should'); describe('Text Examples', function () { it('Fire at 12pm (noon) every day', function () { later.date.UTC(); const sched = later.parse.text('at 12:00 pm'); const start = new Date('2013-03-21T03:05:23Z'); const end = new Date('2013-03-...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/array/previnvalid-test.js
test/array/previnvalid-test.js
const later = require('../..'); const should = require('should'); describe('Later.array.prevInvalid', function () { it('should exist', function () { should.exist(later.array.prevInvalid); }); it('should return the previous invalid value', function () { const array = [1, 2, 5]; const extent = [1, 5];...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/array/next-test.js
test/array/next-test.js
const later = require('../..'); const should = require('should'); describe('Later.array.next', function () { it('should exist', function () { should.exist(later.array.next); }); it('should return the next highest value', function () { const array = [1, 2, 4, 5]; const cur = 3; const extent = [1,...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/array/prev-test.js
test/array/prev-test.js
const later = require('../..'); const should = require('should'); describe('Later.array.prev', function () { it('should exist', function () { should.exist(later.array.prev); }); it('should return the prev highest value', function () { const array = [1, 2, 4, 5]; const cur = 3; const extent = [1,...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/array/nextinvalid-test.js
test/array/nextinvalid-test.js
const later = require('../..'); const should = require('should'); describe('Later.array.nextInvalid', function () { it('should exist', function () { should.exist(later.array.nextInvalid); }); it('should return the next invalid value', function () { const array = [1, 2, 5]; const extent = [1, 5]; ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/array/sort-test.js
test/array/sort-test.js
const later = require('../..'); const should = require('should'); describe('Later.array.sort', function () { it('should exist', function () { should.exist(later.array.sort); }); it('should not modify arrays that are already sorted', function () { const array = [1, 2, 3, 4, 5]; const expected = [1, 2...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/core/compile-test.js
test/core/compile-test.js
const later = require('../..'); const should = require('should'); describe('Compile', function () { describe('start', function () { const d = new Date('2013-03-21T00:00:05Z'); describe('next', function () { it('should return start date if start is valid', function () { later.date.UTC(); ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/core/settimeout-test.js
test/core/settimeout-test.js
const later = require('../..'); const should = require('should'); const sinon = require('sinon'); const noop = () => { /* noop */ }; describe('Set timeout', function () { it('should execute a callback after the specified amount of time', function (done) { this.timeout(3000); const clock = sinon.useFakeTi...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/core/setinterval-test.js
test/core/setinterval-test.js
const later = require('../..'); const should = require('should'); const sinon = require('sinon'); describe('Set interval', function () { it('should execute a callback after the specified amount of time', function (done) { this.timeout(0); const clock = sinon.useFakeTimers(Date.now()); const s = later.p...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/test/core/schedule-test.js
test/core/schedule-test.js
const later = require('../..'); const { schedule } = later; const should = require('should'); describe('Schedule', function () { later.date.UTC(); describe('isValid', function () { const d = new Date('2013-03-21T00:00:05Z'); it('should return true if date is valid', function () { const s = { schedu...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/example/modifier.js
example/modifier.js
/** * Modifier * (c) 2013 Bill, BunKat LLC. * * Example of creating a custom modifier. See * http://bunkat.github.io/later/modifiers.html#custom for more details. * * Later is freely distributable under the MIT license. * For all details and documentation: * http://github.com/bunkat/later */ const later ...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/example/server.js
example/server.js
const later = require('..'); // require('@breejs/later') if installed via npm // create the desired schedule const sched = later.parse.text('every 5 mins on the 30th sec'); // calculate the next 5 occurrences using local time later.date.localTime(); const results = later.schedule(sched).next(5);
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
breejs/later
https://github.com/breejs/later/blob/2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b/example/timeperiod.js
example/timeperiod.js
/** * Timeperiod * (c) 2013 Bill, BunKat LLC. * * Example of creating a custom time period. See * http://bunkat.github.io/later/time-periods.html#custom for more details. * * Later is freely distributable under the MIT license. * For all details and documentation: * http://github.com/bunkat/later */ cons...
javascript
MIT
2fdfd1ac4f516cbe0dc3618e24cfc183bb86f61b
2026-01-05T03:41:22.538468Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/styles/global.js
src/app/styles/global.js
import { injectGlobal } from 'styled-components'; import { grey300 } from './colors'; /* eslint no-unused-expressions: 0 */ injectGlobal` html, body { margin: 0; padding: 0; height: 100%; width: 100%; color: ${grey300}; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Ari...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/styles/colors.js
src/app/styles/colors.js
export const grey100 = '#f5f5f5'; export const grey200 = '#bdbdbd'; export const grey300 = '#212121';
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/styles/utils.js
src/app/styles/utils.js
import { css } from 'styled-components'; const setMedia = size => (...args) => css` @media (min-width: ${size}px) { ${css(...args)} } `; export const media = { giant: setMedia(1200), desktop: setMedia(992), tablet: setMedia(768), phone: setMedia(376) }; export function truncate(width) { ret...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/redux/reducer.js
src/app/redux/reducer.js
import { fromJS } from 'immutable'; import { combineReducers } from 'redux-immutablejs'; import { setToImmutableStateFunc, setToMutableStateFunc, immutableReducer as reduxAsyncConnect } from 'redux-connect'; import routeReducer from './routing'; setToImmutableStateFunc(mutableState => fromJS(mutableState)); set...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/redux/store.js
src/app/redux/store.js
import thunkMiddleware from 'redux-thunk'; import { fromJS } from 'immutable'; import { createStore, applyMiddleware, compose } from 'redux'; import { routerMiddleware } from 'react-router-redux'; import createReducer from './reducer'; export default function configureStore(history, initialState = {}) { const reduce...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/redux/routing.js
src/app/redux/routing.js
import { fromJS } from 'immutable'; import { LOCATION_CHANGE } from 'react-router-redux'; const routeInitialState = fromJS({ locationBeforeTransitions: null }); export default function routeReducer(state = routeInitialState, { type, payload }) { switch (type) { case LOCATION_CHANGE: return state.merge({...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/routes/notFound.js
src/app/routes/notFound.js
import LandingContainer from 'app/modules/landing/containers/LandingContainer'; export default { path: '*', component: LandingContainer, getIndexRoute(partialNextState, cb) { require.ensure([], (require) => { cb(null, { component: require('app/components/NotFound') }); }); } };
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/routes/index.js
src/app/routes/index.js
import AppContainer from 'app/containers/AppContainer'; export default function routes() { return { component: AppContainer, childRoutes: [ require('./landing'), require('./notFound') ] }; }
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/routes/landing.js
src/app/routes/landing.js
import Home from 'app/modules/landing/components/Home'; import LandingContainer from 'app/modules/landing/containers/LandingContainer'; export default { path: '/', component: LandingContainer, indexRoute: { component: Home } };
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/Container/index.js
src/app/components/Container/index.js
import styled from 'styled-components'; import { media } from 'app/styles/utils'; const Wrapper = styled.div` margin: 0 auto; padding: 0 15px; ${media.giant`width: 1170px;`} `; export default Wrapper;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/Footer/index.js
src/app/components/Footer/index.js
import React, { PureComponent } from 'react'; import Container from 'app/components/Container'; import Wrapper from './Wrapper'; export default class Footer extends PureComponent { render() { const githubUrl = 'https://github.com/krasevych/english-school'; return ( <Wrapper> <Container> ...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/Footer/Wrapper.js
src/app/components/Footer/Wrapper.js
import styled from 'styled-components'; import { grey100 } from 'app/styles/colors'; const Wrapper = styled.footer` height: 40px; line-height: 40px; background: ${grey100}; `; export default Wrapper;
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false
krasevych/react-redux-styled-hot-universal
https://github.com/krasevych/react-redux-styled-hot-universal/blob/847cdcb06ed2bd74629a56a38fd3d3c842737c99/src/app/components/NotFound/index.js
src/app/components/NotFound/index.js
import React, { PureComponent } from 'react'; import Container from 'app/components/Container'; import Wrapper from './Wrapper'; export default class NotFound extends PureComponent { render() { return ( <Container> <Wrapper> <span>Not Found</span> </Wrapper> </Container> ...
javascript
MIT
847cdcb06ed2bd74629a56a38fd3d3c842737c99
2026-01-05T03:41:32.742875Z
false