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 |
|---|---|---|---|---|---|---|---|---|
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toPred/test/index.js | packages/toPred/test/index.js | import toPred from '../src';
it('converts a single char to its predecessor', () => {
expect(toPred('b')).toBe('a');
expect(toPred('B')).toBe('A');
});
it('converts a sentence to its predecessor', () => {
expect(toPred('LoremIpsum')).toBe('KnqdlHortl');
});
it('converts a sentence its predecessor for other lang... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/cache/src/index.js | packages/cache/src/index.js | /**
* @param {Function} [func] The function to have its output memoized.
* @param {Function} [resolver] The function to resolve the caching mechanism.
* @returns {Function} Returns the new memoized function.
*/
const cache = (func, resolver) => {
if (typeof resolver !== 'function') {
resolver = null;
}
co... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/cache/test/index.js | packages/cache/test/index.js | import cache from '../src';
const toLower = x => x.toLowerCase();
it('works with basics', () => {
const toLowerMock = jest.fn(key => {
return toLower(key);
});
const toLowerCache = cache(toLowerMock);
expect(toLowerCache('A')).toEqual('a');
expect(toLowerCache('A')).toEqual('a');
expect(toLowerMock.m... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isAlphaNumeric/src/index.js | packages/isAlphaNumeric/src/index.js | /**
* @description Checks whether the input is a string containing only alphanumeric characters
* @param {String} text
* @example
* isAlphaNumeric('fooBAR') // returns true
* isAlphaNumeric('123') // returns true
* isAlphaNumeric('foo123BAR') // returns true
* isAlphaNumeric('1.0') // returns false
* isAlphaNum... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isAlphaNumeric/test/index.js | packages/isAlphaNumeric/test/index.js | import isAlphaNumeric from '../src';
it('should return true for a string of alphabetical characters (upper- and lower-case)', () => {
expect(isAlphaNumeric('fooBAR')).toBe(true);
});
it('should return true for a string of numeric characters', () => {
expect(isAlphaNumeric('123')).toBe(true);
});
it('should retur... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/countWords/src/index.js | packages/countWords/src/index.js | /**
* @description Returns the number of words contained in the input text.
* @param {String} string
* @example
* countWords(); // => 0
* countWords(''); // => 0
* countWords(' ') // => 0
* countWords('Hello World') // => 2
* countWords('Hello World !!') // => 2
*/
const countWords = (string = '') => {... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/countWords/test/index.js | packages/countWords/test/index.js | 'use strict';
import countWords from '../src';
describe('@plexis/countWords', () => {
it('should retrun 0', () => {
expect(countWords()).toBe(0);
});
it('should retrun 0', () => {
expect(countWords(' ')).toBe(0);
});
it('should retrun 2', () => {
expect(countWords('Hello World')).toBe(2);
}... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isUpperCase/src/index.js | packages/isUpperCase/src/index.js | /**
* @description Checks whether the input is a string containing only uppercase characters
* @param {String} text
* @example
* isUpperCase️('b') // returns false
* isUpperCase️('B') // returns true
* isUpperCase️('BCD') // returns true
*/
const isUpperCase️ = text => text === text.toUpperCase();
export defaul... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isUpperCase/test/index.js | packages/isUpperCase/test/index.js | import isUpperCase from '../src';
it('check a uppercase string', () => {
expect(isUpperCase('HELLO')).toBe(true);
});
it('check a uppercase with spaces string', () => {
expect(isUpperCase('HELLO FOO BAR')).toBe(true);
});
it('check a lowercase string', () => {
expect(isUpperCase('hello')).toBe(false);
});
it(... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/head/src/index.js | packages/head/src/index.js | /**
* @description Extracts the first length characters from the input text.
* @param {String} text
* @param {Number} length
* @example
* head(); // => ''
* head('Hello'); // => 'H'
* head('Hello', 2); // => 'He'
* head('Hello', 100); // => 'Hello'
*/
const head = (text = '', length = 1) => {
if (typeof text... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/head/test/index.js | packages/head/test/index.js | import head from '../src';
describe('returns the first length characters from the input text', () => {
const cases = [{text: 'John'}, {text: 'Doe', length: 2}, {text: 'Hello', length: 100}];
const expected = ['J', 'Do', 'Hello'];
cases.forEach(({text, length}, i) => {
test(`head(${text},${length})`, () => {... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/compare/src/index.js | packages/compare/src/index.js | /*
* @description Compares input text as humans do.
* @param {String} first
* @param {String} second
* @returns {Integer}
* @example
* compare('', '') // => 0
* compare('A', 'a') // => 1
* compare('A', 'b') // => 1
* compare('A woman', 'a woman') // => 1
* compare('b', 'B') // => -1
* compare('C', 'b') // =>... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/compare/test/index.js | packages/compare/test/index.js | import compare from '../src';
it('Should compare strings naturally', () => {
expect(compare('', '')).toBe(0);
expect(compare('A', 'a')).toBe(1);
expect(compare('A', 'b')).toBe(1);
expect(compare('A woman', 'a woman')).toBe(1);
expect(compare('b', 'B')).toBe(-1);
expect(compare('C', 'b')).toBe(-1);
expect... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isLowerCase/src/index.js | packages/isLowerCase/src/index.js | /**
* @description Checks whether the input is a string containing only lowercase characters
* @param {String} text
* @example
* isLowerCase('foo') // returns true
* isLowerCase('Foo') // returns false
* isLowerCase('BAR') // returns false
*/
const isLowerCase = text => text === text.toLowerCase();
export defau... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isLowerCase/test/index.js | packages/isLowerCase/test/index.js | import isLowerCase from '../src';
it('check a uppercase string', () => {
expect(isLowerCase('HELLO')).toBe(false);
});
it('check a lowercase with spaces string', () => {
expect(isLowerCase('foo bar')).toBe(true);
});
it('check a lowercase string', () => {
expect(isLowerCase('hello')).toBe(true);
});
it('check... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/plexis/src/index.js | packages/plexis/src/index.js | export {
default as compare,
default as compareLikeHuman,
default as naturalCompare
} from '@plexis/compare';
export {default as compose, default as _do} from '@plexis/compose';
export {default as count} from '@plexis/count';
export {
default as calcLevenshtein,
default as distance,
default as levenshtein
}... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/plexis/test/index.js | packages/plexis/test/index.js | import * as plexis from '../src/index';
it('allows using all the available utilities', () => {
expect(Object.keys(plexis)).toMatchSnapshot();
});
| javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/withoutHTML/src/index.js | packages/withoutHTML/src/index.js | /**
* @description Remove HTML tags from the input text
* @param {String} text
* @returns {String} text without HTML
* @example
* withoutHTML('Hello world') => 'Hello world'
* withoutHTML('<p>Hello</p> world') => ' world'
* withoutHTML('<p Hello world') => '<p Hello world'
* withoutHTML('<p id="">Hello world</p... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/withoutHTML/test/index.js | packages/withoutHTML/test/index.js | import withoutHTML from '../src';
it('Remove HTML tags from the input text', () => {
expect(withoutHTML('Hello world')).toBe('Hello world');
expect(withoutHTML('<p>Hello</p> world')).toBe(' world');
expect(withoutHTML('<p Hello world')).toBe('<p Hello world');
expect(withoutHTML('<p id="">Hello world</p>')).to... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toCapitals/src/index.js | packages/toCapitals/src/index.js | /**
* @description Converts the first character of the input text to upper case. If the second parameter is true, the method converts the rest of the subject to lower case.
* @param {String} text
* @param {Boolean} isLowercase
* @example
* toPred('foo Bar') // returns 'Foo Bar'
* toPred('fOO Bar') // returns 'FOO... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toCapitals/test/index.js | packages/toCapitals/test/index.js | import toCapitals from '../src';
describe('@plexis/to-capitals', () => {
it('no params, should be empty string', () => {
expect(toCapitals()).toBe('');
});
it('empty string,, should be empty strin', () => {
expect(toCapitals('')).toBe('');
});
it('should capitalize only first letter, the rest of th... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/tail/src/index.js | packages/tail/src/index.js | /**
* @description Extracts the last length characters from the input text
* @param {String} text
* @param {Number} endingPosition, optional
* @example
* tail(); // returns ''
* tail('Hello'); // returns 'o'
* tail('Hello', 2); // returns 'lo'
* tail('Hello', 100); // returns 'Hello'
*/
const tail = (text, en... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/tail/test/index.js | packages/tail/test/index.js | import tail from '../src';
it('Extracts the last length characters from the input text', () => {
expect(tail()).toBe('');
expect(tail('Hello')).toBe('o');
expect(tail('Hello', 2)).toBe('lo');
expect(tail('Hello', 100)).toBe('Hello');
});
| javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/when/src/index.js | packages/when/src/index.js | /**
* @description Is used for checking and chaining within the composition for supercharged functions.
* @param {Function|Boolean} [checking] A function or condition to check.
* @param {Function} [func] The function to invoke.
* @returns {Function} Returns the new composite function.
* @example
* _when(num => nu... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/when/test/index.js | packages/when/test/index.js | import _when from '../src';
it('executes the function if the condition is a boolean and true', () => {
const mock = jest.fn();
_when(true, mock)(1);
expect(mock).toHaveBeenCalledTimes(1);
expect(mock).toHaveBeenCalledWith(1);
});
it("doesn't execute the function if the condition is a boolean and false", () =>... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/withoutIndent/src/index.js | packages/withoutIndent/src/index.js | /**
* @description Removes leading whitespaces from every line in the given string
* @param {String} text
* @param {Number} [removeUpTo] - Specifies how many whitespaces to remove
* @example
*
* withoutIndent('\t\t\tHello World'); // returns 'Hello World'
* withoutIndent('\n\tHello\n\tWorld'); // returns '\nHell... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/withoutIndent/test/index.js | packages/withoutIndent/test/index.js | import withoutIndent from '../src';
it('removes an indent from the front', () => {
expect(withoutIndent('\tHello')).toBe('Hello');
expect(withoutIndent('\rHello')).toBe('Hello');
expect(withoutIndent(' Hello')).toBe('Hello');
});
it("doesn't remove newline characters", () => {
expect(withoutIndent('\nHello'))... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/repeat/src/index.js | packages/repeat/src/index.js | /**
* Repeats the input text number of times.
* @param {String} [text] The input text.
* @returns {Integer} times How many times shall we repeat the text, default to 1
* @param {String} glue The glue for the output, default to ''
* @returns {String} The repeated string;
*/
const repeat = (text, times = 1, glue =... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/repeat/test/index.js | packages/repeat/test/index.js | import repeat from '../src';
it('repeat text with repeat param and default glue', () => {
const result = repeat('ABCD');
expect(result).toBe('ABCD');
});
it('repeat text with repeat param and default glue', () => {
const result = repeat('Apollo11', 2);
expect(result).toBe('Apollo11Apollo11');
});
it('repeat ... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/includes/src/index.js | packages/includes/src/index.js | /**
* @description Checks if the search is part of the input string in the given position
* @params {string} [inputString] input string
* @params {string) [searchString] search string
* @params {number} [position] - check at given position
* @return {boolean} Whether string2 is part of string1
* @example
* inclu... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/includes/test/includes.test.js | packages/includes/test/includes.test.js | 'use strict';
import includes from '../src';
describe('@plexis/isNumeric', () => {
it('no first or second string parameter given', () => {
expect(includes()).toBe(false);
});
it('no second parameter given', () => {
expect(includes('')).toBe(false);
});
it('empty string given for first and second s... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toTitle/src/index.js | packages/toTitle/src/index.js | /**
* @description Converts a string to a title, capitalizes the first letter of each word.
* @param {String} text
* @example
* toTitle('this is cool mate') // returns 'This Is Cool Mate'
*/
const toTitle = text =>
text
.toLowerCase()
.split(' ')
.map(s => s.charAt(0).toUpperCase() + s.substring(1))
... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toTitle/test/index.js | packages/toTitle/test/index.js | import toTitle from '../src';
it('converts a sigle word sentence to a title', () => {
expect(toTitle('this')).toBe('This');
});
it('converts a multiword sentence to a title', () => {
expect(toTitle('this is cool mate')).toBe('This Is Cool Mate');
});
it('converts a multiword sentence to a title for any given lan... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toPlural/src/index.js | packages/toPlural/src/index.js | /**
* @description Converts a word to its plural form
* @param {String} word
* @param {String} pluralForm
* @param {Number} count
* @returns {String} pluralized word
* @example
* toPlural('example'); // => 'examples'
* toPlural('example', 10); // => 'examples'
* toPlural('example', 1); // => 'example'
* toPlu... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toPlural/test/index.js | packages/toPlural/test/index.js | import toPlural from '../src';
describe('@plexis/to-plural', () => {
it('converts a given string to its plural form', () => {
expect(toPlural('example')).toBe('examples');
expect(toPlural('example', 10)).toBe('examples');
expect(toPlural('example', 1)).toBe('example');
expect(toPlural('example', 0)).... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isString/src/index.js | packages/isString/src/index.js | /**
* @description Checks whether the input is a string primitive type.
* @param {String} param
* @returns {Boolean}
* @example
* isString('Foo') // returns 'true'
* isString(1) // returns 'false'
* isString(null) // returns 'false'
*/
const isString = param => typeof param === 'string';
export default isStrin... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isString/test/index.js | packages/isString/test/index.js | import isString from '../src';
it('returns false for non-string types', () => {
const nonStrings = [5, false, true, null, undefined, {}, [1, 2], []];
nonStrings.forEach(param => {
expect(isString(param)).toBe(false);
});
});
it('returns true for string type', () => {
const strings = [
'Foo',
'',
... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/insert/src/index.js | packages/insert/src/index.js | /**
* @description Inserts into the input text a string at specified position
* @param {String} text
* @param {String} textToInsert
* @param {Number} insertPosition
*
* @example
* insert('foo ba'); // returns 'foo ba'
* insert('foo ba', "r"); // returns 'foo bar'
* insert('foo ba', "r", 6); // returns 'foo ... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/insert/test/insert.test.js | packages/insert/test/insert.test.js | 'use strict';
import insert from '../src';
describe('@plexis/to-human', () => {
it('returns an empty string', () => {
expect(insert()).toBe('');
expect(insert('')).toBe('');
expect(insert('', '')).toBe('');
expect(insert('', '', 0)).toBe('');
expect(insert('', '', 100)).toBe('');
});
it('ret... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toPascalCase/src/index.js | packages/toPascalCase/src/index.js | // to be replaced with @plexis/toCamelCase
const toCamelCase = text => {
const lowerUpper = (letter, index) => {
return index === 0 ? letter.toLowerCase() : letter.toUpperCase();
};
const wordPatt = /^\w|[A-Z]|\b\w/g;
const symbolPatt = /[^a-zA-Z0-9]/g;
return text
.trim()
.replace(wordPatt, lower... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toPascalCase/test/index.js | packages/toPascalCase/test/index.js | import toPascalCase from '../src';
it('Works with single characters', () => {
expect(toPascalCase('h')).toBe('H');
});
it('Works will full words', () => {
expect(toPascalCase('hello')).toBe('Hello');
});
it('Works with strange cases on a single word', () => {
expect(toPascalCase('hEllO')).toBe('HEllO');
});
i... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isEmpty/src/index.js | packages/isEmpty/src/index.js | /**
* @description Checks whether the input text is empty
* @param {String} text
* @example
* isEmpty('') // returns true
* isEmpty(' ') // returns true
* isEmpty(' b ') // returns false
*/
const isEmpty = text => /^\s*$/.test(text);
export default isEmpty;
| javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isEmpty/test/index.js | packages/isEmpty/test/index.js | import isEmpty from '../src/';
it('check empty string', () => {
expect(isEmpty('')).toBe(true);
});
it('check string with spaces', () => {
expect(isEmpty(' ')).toBe(true);
});
it('check string ith spaces and character', () => {
expect(isEmpty(' b ')).toBe(false);
});
it('check string with characters', () =>... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/escapeHTML/src/index.js | packages/escapeHTML/src/index.js | /**
* @description Takes the input text and converts HTML special characters to their entity equivalents.
* @param {String} text
* @example
* escapeHTML('ABCD'); // returns 'ABCD'
* escapeHtml('<3') // returns '<3'
* escapeHtml('<p>This is cool</p>') // returns '<p>This is cool</p>'
*/
const escap... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/escapeHTML/test/index.js | packages/escapeHTML/test/index.js | import escapeHTML from '../src';
it('converts HTML special characters in a string to entity equivalents', () => {
expect(escapeHTML('ABCD')).toBe('ABCD');
expect(escapeHTML('<3')).toBe('<3');
expect(escapeHTML('<p>This is cool</p>')).toBe('<p>This is cool</p>');
expect(escapeHTML('<div>"Rise" & ... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/count/src/index.js | packages/count/src/index.js | /**
* @description This is a sample description
* @param {String} text
* @param (Function) validator, validates if a character should be count or not
* @example
* count('b') // returns 1
* count('Foo') // returns 3
* count('Foo bar') // returns 7
* count('Foo bar ', char => char != ' ') //returns 6
*
*/
cons... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/count/test/index.js | packages/count/test/index.js | import count from '../src';
describe('@plexis/count', () => {
it('no first or second parameter given', () => {
expect(count()).toBe(0);
});
it('empty string given and no validator for second parameter', () => {
expect(count('')).toBe(0);
});
it('no empty string given for first and no validator for ... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/compose/src/index.js | packages/compose/src/index.js | const composeTwo = (f, g) => (...x) =>
Reflect.apply(f, undefined, [Reflect.apply(g, undefined, x)]);
/**
* Compose two or more functions
* @param {Function[]} args Array of Function
* @returns {Function} Returns the new composite function.
* @example
* const inc = x => x + 1;
* const add = (x, y) => x + y;
*... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/compose/test/index.js | packages/compose/test/index.js | import compose from '../src';
const inc = x => x + 1;
const add = (x, y) => x + y;
it('compose 2 unary functions', () => {
const ops = compose(
inc,
x => add(x, 2)
);
expect(ops(1)).toBe(4);
expect(ops(10)).toBe(13);
});
it('compose unary and binary functions', () => {
const ops = compose(
inc,... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isNumeric/src/index.js | packages/isNumeric/src/index.js | /**
* @description Checks whether the argument given is a number
* @param {Any} value to validate
* @return {boolean} Whether the argument passed was a number or not
* @example
* isNumeric('1000') // returns true
* isNumeric('Foo') // returns false
*/
const isNumeric = value => !isNaN(Number(value));
export de... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isNumeric/test/isNumeric.test.js | packages/isNumeric/test/isNumeric.test.js | 'use strict';
import isNumeric from '../src';
describe('@plexis/isNumeric', () => {
it('check a valid numeric value `1000` ', () => {
expect(isNumeric('1000')).toBe(true);
});
it('test if Infinity is a valid number', () => {
expect(isNumeric('Infinity')).toBe(true);
});
it('test against a negative... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/endsWith/src/index.js | packages/endsWith/src/index.js | import isString from '@plexis/is-string';
/**
* @description Checks whether the input text ends with the given pattern
*
* @param {String} text - String to be tested
* @param {String|Regex} pattern - Pattern to be checked against text
* @param {Number} startingPosition, optional - The position of the end of the s... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/endsWith/test/ends-with.test.js | packages/endsWith/test/ends-with.test.js | import endsWith from '../src';
describe('@plexis/ends-with', () => {
const baseString = 'A normal string';
it('receives strings as pattern', () => {
expect(endsWith(baseString, 'string')).toBe(true);
expect(endsWith(baseString, 'normal')).toBe(false);
});
it('receives regex as pattern', () => {
e... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toEllipsis/src/index.js | packages/toEllipsis/src/index.js | /**
* @description Truncates the input text to the desired length.
* @param {String} string
* @param {Number} limit
* @example
* toEllipsis('foo'); //=> 'foo'
* toEllipsis('foo', 1); // => 'f..'
* toEllipsis('foo', 3); // => 'foo'
* toEllipsis('Last night I dreamt I went to Manderley again.', 5); // => 'Last .... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toEllipsis/test/index.js | packages/toEllipsis/test/index.js | 'use strict';
import toEllipsis from '../src';
describe('@plexis/toEllipsis', () => {
it('should retrun ...', () => {
expect(toEllipsis('foo', 0)).toBe('...');
});
it('should retrun foo', () => {
expect(toEllipsis('foo')).toBe('foo');
});
it('should retrun foo', () => {
expect(toEllipsis('foo', ... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSwap/src/index.js | packages/toSwap/src/index.js | /**
* @description Swaps every character in a string, until the end of the string
* @param {String} string
* @example
* toSwap('ab') // returns 'ab'
* toSwap('a b') // returns ' ab'
* toSwap('abcd') // returns 'badc'
* @returns {String} reordered letters
*/
const toSwap = string => {
var arr = string.split(''... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSwap/test/index.js | packages/toSwap/test/index.js | import toSwap from '../src';
it('Swap only small strings', () => {
expect(toSwap('ab')).toBe('ba');
expect(toSwap('a')).toBe('a');
});
it('Swap an odd number of letters', () => {
expect(toSwap('abc')).toBe('bac');
expect(toSwap('abcd')).toBe('badc');
});
it('Swap with spaces', () => {
expect(toSwap('a b')).t... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSucc/src/index.js | packages/toSucc/src/index.js | /**
* @description Converts a string to its equivalent successor
* @param {String} text
* @example
* toSucc('a') // returns 'b'
* toSucc('A') // returns 'B'
* toSucc('ABCD') // returns 'BCDE'
*/
const toSucc = text =>
text
.split('')
.map(s => String.fromCharCode(s.charCodeAt(0) + 1))
.join('');
... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSucc/test/index.js | packages/toSucc/test/index.js | import toSucc from '../src';
it('converts a single char to its successor', () => {
expect(toSucc('a')).toBe('b');
expect(toSucc('A')).toBe('B');
});
it('converts a sentence to its successor', () => {
expect(toSucc('LoremIpsum')).toBe('MpsfnJqtvn');
});
it('converts a sentence for other languages', () => {
ex... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/withoutDiacritics/src/index.js | packages/withoutDiacritics/src/index.js | /**
* @description Cleanups a string from diacritics.
* @param {String} text
* @example
* withoutDiacritics('áéíóú') // returns 'aeiou'
*/
const withoutDiacritics = text => text.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
export default withoutDiacritics;
| javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/withoutDiacritics/test/index.js | packages/withoutDiacritics/test/index.js | import withoutDiacritics from '../src';
it('removes any diacritics for Galician', () => {
expect(withoutDiacritics('áéíóú')).toBe('aeiou');
});
it('removes any diacritics for Greek', () => {
expect(withoutDiacritics('Άά Έέ Ήή Ίί Όό Ύύ Ώώ ΐ ΰ Ϊϊ Ϋϋ')).toBe(
'Αα Εε Ηη Ιι Οο Υυ Ωω ι υ Ιι Υυ'
);
});
it('remove... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSnakeCase/src/index.js | packages/toSnakeCase/src/index.js | /**
* @description Converts a string to snake case
* @param {String} text
* @returns {String} snake case text
* @example
* toSnakeCase('Cool') => 'cool'
* toSnakeCase('cool mate') => 'cool_mate'
* toSnakeCase('Hey how are you today?') => 'hey_how_are_you_today'
* toSnakeCase('PascalCase') => 'pascal_case'
* to... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSnakeCase/test/index.js | packages/toSnakeCase/test/index.js | import toSnakeCase from '../src';
it('converts a given string to snake case', () => {
expect(toSnakeCase('Cool')).toBe('cool');
expect(toSnakeCase('cool mate')).toBe('cool_mate');
expect(toSnakeCase('Hey how are you today?')).toBe('hey_how_are_you_today');
expect(toSnakeCase('PascalCase')).toBe('pascal_case');... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/startsWith/src/index.js | packages/startsWith/src/index.js | /**
* @description Checks whether the input text starts with the given pattern.
* @param {String} text
* @param {String|Regex} pattern
* @param {Number} startingPosition, optional
* @example
* startsWith('This is me', 'This is'); // returns true
* startsWith('This is me', 'This is', 1); // returns false
* start... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
plexis-js/plexis | https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/startsWith/test/index.js | packages/startsWith/test/index.js | import startsWith from '../src';
it('Matches single characters', () => {
expect(startsWith('Hello', 'H')).toBe(true);
});
it("Doesn't match single characters not at front of string", () => {
expect(startsWith('Hello', 'l')).toBe(false);
});
it('Matches single characters with startingPosition set at character ind... | javascript | MIT | 33f96f4841ec7b9b858f0f88671c8c542d4f5731 | 2026-01-05T03:43:19.825618Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/src/cli.js | src/cli.js | import arg from 'arg'
import inquirer from 'inquirer'
import { createT3SvelteApp } from './main.js'
function parseArgumentsIntoOptions(rawArgs) {
const args = arg(
{
'--yes': Boolean,
},
{
argv: rawArgs.slice(2),
}
)
return {
skipPrompts: args['--yes'] || false,
template: args._[0],
}
}
async fu... | javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/src/main.js | src/main.js | import chalk from 'chalk'
import fs from 'fs-extra'
import path from 'path'
import { promisify } from 'util'
import { execa } from 'execa'
import { fileURLToPath } from 'url'
import Listr from 'listr'
import { projectInstall } from 'pkg-install'
import { exec } from 'child_process'
const __filename = fileURLToPath(imp... | javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/bin/create-t3svelte-app.js | bin/create-t3svelte-app.js | #!/usr/bin/env node
import cli from '../src/cli.js'
cli(process.argv); | javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/templates/base_javascript/svelte.config.js | templates/base_javascript/svelte.config.js | import adapter from '@sveltejs/adapter-auto'
import preprocess from 'svelte-preprocess'
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess({
}),
kit: {
adapter: adapter(),
},
... | javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/templates/base_javascript/vite.config.js | templates/base_javascript/vite.config.js | import { sveltekit } from '@sveltejs/kit/vite';
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()]
};
export default config;
| javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/templates/standard/svelte.config.js | templates/standard/svelte.config.js | import adapter from '@sveltejs/adapter-auto'
import preprocess from 'svelte-preprocess'
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess({
}),
kit: {
adapter: adapter(),
},
... | javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/templates/+tailwind/svelte.config.js | templates/+tailwind/svelte.config.js | import adapter from '@sveltejs/adapter-auto'
import preprocess from 'svelte-preprocess'
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess({
postcss: true,
}),
kit: {
adapter... | javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
zach-hopkins/create-t3svelte-app | https://github.com/zach-hopkins/create-t3svelte-app/blob/52e10122a2349bb4d2f5cbd1e16217ba08146966/templates/base_typescript/svelte.config.js | templates/base_typescript/svelte.config.js | import adapter from '@sveltejs/adapter-auto'
import preprocess from 'svelte-preprocess'
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess({
}),
kit: {
adapter: adapter(),
},
... | javascript | MIT | 52e10122a2349bb4d2f5cbd1e16217ba08146966 | 2026-01-05T03:43:32.078079Z | false |
apache/cordova-plugin-console | https://github.com/apache/cordova-plugin-console/blob/7acec7a651e206e05b7319a5b53bbb57055396f9/tests/tests.js | tests/tests.js | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | javascript | Apache-2.0 | 7acec7a651e206e05b7319a5b53bbb57055396f9 | 2026-01-05T03:43:32.139210Z | false |
apache/cordova-plugin-console | https://github.com/apache/cordova-plugin-console/blob/7acec7a651e206e05b7319a5b53bbb57055396f9/www/logger.js | www/logger.js | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | javascript | Apache-2.0 | 7acec7a651e206e05b7319a5b53bbb57055396f9 | 2026-01-05T03:43:32.139210Z | false |
apache/cordova-plugin-console | https://github.com/apache/cordova-plugin-console/blob/7acec7a651e206e05b7319a5b53bbb57055396f9/www/console-via-logger.js | www/console-via-logger.js | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | javascript | Apache-2.0 | 7acec7a651e206e05b7319a5b53bbb57055396f9 | 2026-01-05T03:43:32.139210Z | false |
MAKIO135/svg5.js | https://github.com/MAKIO135/svg5.js/blob/65a4e29c45fbb4a4d948c4ba6cb3ab4b49515bf6/svg5.module.js | svg5.module.js | const svg5 = {
html: '',
_defs: [],
_attributes: '',
_attrRegex: name => new RegExp(`\\s${name}\\=\\"[^"]*\\"`, 'g'),
_styles: [],
_fillColor: 'white',
_strokeColor: 'black',
_strokeWidth: 1,
_strokeCap: 'butt', // butt, square or round
_strokeJoin: 'miter', // miter, round or be... | javascript | MIT | 65a4e29c45fbb4a4d948c4ba6cb3ab4b49515bf6 | 2026-01-05T03:43:32.913465Z | false |
MAKIO135/svg5.js | https://github.com/MAKIO135/svg5.js/blob/65a4e29c45fbb4a4d948c4ba6cb3ab4b49515bf6/svg5.min.js | svg5.min.js | const svg5={html:"",_defs:[],_attributes:"",_attrRegex:e=>new RegExp(`\\s${e}\\=\\"[^"]*\\"`,"g"),_styles:[],_fillColor:"white",_strokeColor:"black",_strokeWidth:1,_strokeCap:"butt",_strokeJoin:"miter",_strokeDashArray:[],_opacity:1,_transform:[[]],_path:[],CLOSE:!0,_initAlea:(e=Date.now())=>{function s(){let e=4022871... | javascript | MIT | 65a4e29c45fbb4a4d948c4ba6cb3ab4b49515bf6 | 2026-01-05T03:43:32.913465Z | false |
MAKIO135/svg5.js | https://github.com/MAKIO135/svg5.js/blob/65a4e29c45fbb4a4d948c4ba6cb3ab4b49515bf6/svg5.js | svg5.js | const svg5 = {
html: '',
_defs: [],
_attributes: '',
_attrRegex: name => new RegExp(`\\s${name}\\=\\"[^"]*\\"`, 'g'),
_styles: [],
_fillColor: 'white',
_strokeColor: 'black',
_strokeWidth: 1,
_strokeCap: 'butt', // butt, square or round
_strokeJoin: 'miter', // miter, round or be... | javascript | MIT | 65a4e29c45fbb4a4d948c4ba6cb3ab4b49515bf6 | 2026-01-05T03:43:32.913465Z | false |
xauth/xauth | https://github.com/xauth/xauth/blob/2e2e30e50344efdfc38b517417ed5636a47524b2/release/xauth.js | release/xauth.js | var XAuth=(function(){var j=window;var q=!(j.postMessage&&j.localStorage&&j.JSON);var n="xauth.org";var e="http://"+n+"/server.html";var g=null;var a=null;var p={};var d=0;var m=[];function o(s){var u=s.origin.split("://")[1].split(":")[0];if(u!=n){return}var t=JSON.parse(s.data);if(!t){return}if(t.cmd=="xauth::ready")... | javascript | Apache-2.0 | 2e2e30e50344efdfc38b517417ed5636a47524b2 | 2026-01-05T03:43:33.716926Z | false |
xauth/xauth | https://github.com/xauth/xauth/blob/2e2e30e50344efdfc38b517417ed5636a47524b2/src/xauth.js | src/xauth.js | /*
Copyright 2010 Meebo Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | javascript | Apache-2.0 | 2e2e30e50344efdfc38b517417ed5636a47524b2 | 2026-01-05T03:43:33.716926Z | false |
xauth/xauth | https://github.com/xauth/xauth/blob/2e2e30e50344efdfc38b517417ed5636a47524b2/src/server.js | src/server.js | /*
Copyright 2010 Meebo Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | javascript | Apache-2.0 | 2e2e30e50344efdfc38b517417ed5636a47524b2 | 2026-01-05T03:43:33.716926Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/b3.js | src/b3.js | /**
* b3
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, c... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/decorators/RepeatUntilFailure.js | src/decorators/RepeatUntilFailure.js | /**
* RepeatUntilFailure
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* r... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/decorators/MaxTime.js | src/decorators/MaxTime.js | /**
* MaxTime
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to us... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/decorators/RepeatUntilSuccess.js | src/decorators/RepeatUntilSuccess.js | /**
* RepeatUntilSuccess
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* r... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/decorators/Inverter.js | src/decorators/Inverter.js | /**
* Inverter
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to u... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/decorators/Repeater.js | src/decorators/Repeater.js | /**
* Repeater
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to u... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/decorators/Limiter.js | src/decorators/Limiter.js | /**
* Limiter
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to us... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/actions/Failer.js | src/actions/Failer.js | /**
* Failer
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/actions/Wait.js | src/actions/Wait.js | /**
* Wait
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/actions/Error.js | src/actions/Error.js | /**
* Error
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use,... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/actions/Succeeder.js | src/actions/Succeeder.js | /**
* Succeeder
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/actions/Runner.js | src/actions/Runner.js | /**
* Runner
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/composites/Priority.js | src/composites/Priority.js | /**
* Priority
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to u... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/composites/MemSequence.js | src/composites/MemSequence.js | /**
* MemSequence
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights t... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/composites/Sequence.js | src/composites/Sequence.js | /**
* Sequence
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to u... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/composites/MemPriority.js | src/composites/MemPriority.js | /**
* MemPriority
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights t... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/BehaviorTree.js | src/core/BehaviorTree.js | /**
* BehaviorTree
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/Action.js | src/core/Action.js | /**
* Action
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.