si-funciona 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -10
- package/browser/siFunciona.js +18 -11
- package/dist/helpers/arrays/BasicQueue.d.ts +64 -64
- package/dist/helpers/arrays/BasicQueue.js +61 -61
- package/dist/helpers/arrays/addUniqueToArray.d.ts +9 -9
- package/dist/helpers/arrays/addUniqueToArray.js +16 -16
- package/dist/helpers/arrays/buildArray.d.ts +10 -10
- package/dist/helpers/arrays/buildArray.js +25 -25
- package/dist/helpers/arrays/buildArrayOfReferences.d.ts +10 -10
- package/dist/helpers/arrays/buildArrayOfReferences.js +22 -22
- package/dist/helpers/arrays/compareArrays.d.ts +96 -96
- package/dist/helpers/arrays/compareArrays.js +96 -96
- package/dist/helpers/arrays/mergeArrays.d.ts +8 -8
- package/dist/helpers/arrays/mergeArrays.js +21 -21
- package/dist/helpers/arrays/uniqueArray.d.ts +8 -8
- package/dist/helpers/arrays/uniqueArray.js +16 -16
- package/dist/helpers/arrays.d.ts +27 -27
- package/dist/helpers/arrays.js +74 -74
- package/dist/helpers/descriptors/assignDescriptor.d.ts +13 -13
- package/dist/helpers/descriptors/assignDescriptor.js +57 -57
- package/dist/helpers/descriptors/assignDescriptorDetail.d.ts +13 -13
- package/dist/helpers/descriptors/assignDescriptorDetail.js +36 -36
- package/dist/helpers/descriptors/checkClearValues.d.ts +11 -11
- package/dist/helpers/descriptors/checkClearValues.js +20 -20
- package/dist/helpers/descriptors/checkDescriptorComplete.d.ts +10 -10
- package/dist/helpers/descriptors/checkDescriptorComplete.js +19 -19
- package/dist/helpers/descriptors/cloneDescriptor.d.ts +9 -9
- package/dist/helpers/descriptors/cloneDescriptor.js +35 -35
- package/dist/helpers/descriptors/cloneDescriptorDetail.d.ts +9 -9
- package/dist/helpers/descriptors/cloneDescriptorDetail.js +26 -26
- package/dist/helpers/descriptors/compareDescriptor.d.ts +12 -12
- package/dist/helpers/descriptors/compareDescriptor.js +32 -32
- package/dist/helpers/descriptors/describeObject.d.ts +14 -14
- package/dist/helpers/descriptors/describeObject.js +52 -52
- package/dist/helpers/descriptors/describeObjectDetail.d.ts +13 -13
- package/dist/helpers/descriptors/describeObjectDetail.js +37 -37
- package/dist/helpers/descriptors/describeObjectMap.d.ts +35 -35
- package/dist/helpers/descriptors/describeObjectMap.js +107 -107
- package/dist/helpers/descriptors/nextReference.d.ts +12 -12
- package/dist/helpers/descriptors/nextReference.js +30 -30
- package/dist/helpers/descriptors/sameDescriptor.d.ts +12 -12
- package/dist/helpers/descriptors/sameDescriptor.js +21 -21
- package/dist/helpers/descriptors/samples/descriptor.d.ts +34 -34
- package/dist/helpers/descriptors/samples/descriptor.js +22 -22
- package/dist/helpers/descriptors/samples/descriptorDetail.d.ts +42 -42
- package/dist/helpers/descriptors/samples/descriptorDetail.js +24 -24
- package/dist/helpers/descriptors/samples/descriptorMap.d.ts +16 -16
- package/dist/helpers/descriptors/samples/descriptorMap.js +14 -14
- package/dist/helpers/descriptors/samples/mappedDescriptorMap.d.ts +10 -10
- package/dist/helpers/descriptors/samples/mappedDescriptorMap.js +287 -287
- package/dist/helpers/descriptors.d.ts +56 -56
- package/dist/helpers/descriptors.js +129 -129
- package/dist/helpers/functions/callWithParams.d.ts +10 -10
- package/dist/helpers/functions/callWithParams.js +16 -16
- package/dist/helpers/functions/curry.d.ts +10 -10
- package/dist/helpers/functions/curry.js +16 -16
- package/dist/helpers/functions/delay.d.ts +20 -20
- package/dist/helpers/functions/delay.js +31 -31
- package/dist/helpers/functions/makeBasicQueue.d.ts +9 -9
- package/dist/helpers/functions/makeBasicQueue.js +18 -18
- package/dist/helpers/functions/onBodyLoad.d.ts +9 -9
- package/dist/helpers/functions/onBodyLoad.js +75 -75
- package/dist/helpers/functions/pipe.d.ts +9 -9
- package/dist/helpers/functions/pipe.js +17 -17
- package/dist/helpers/functions/preloadParams.d.ts +19 -19
- package/dist/helpers/functions/preloadParams.js +20 -20
- package/dist/helpers/functions/queueManager.d.ts +48 -48
- package/dist/helpers/functions/queueManager.js +123 -123
- package/dist/helpers/functions/queueTimeout.d.ts +20 -20
- package/dist/helpers/functions/queueTimeout.js +22 -22
- package/dist/helpers/functions/relevancyFilter.d.ts +34 -34
- package/dist/helpers/functions/relevancyFilter.js +33 -33
- package/dist/helpers/functions/trace.d.ts +13 -13
- package/dist/helpers/functions/trace.js +24 -24
- package/dist/helpers/functions.d.ts +40 -40
- package/dist/helpers/functions.js +105 -105
- package/dist/helpers/numbers/absoluteMax.d.ts +9 -9
- package/dist/helpers/numbers/absoluteMax.js +15 -15
- package/dist/helpers/numbers/absoluteMin.d.ts +9 -9
- package/dist/helpers/numbers/absoluteMin.js +15 -15
- package/dist/helpers/numbers/compare.d.ts +12 -12
- package/dist/helpers/numbers/compare.js +18 -18
- package/dist/helpers/numbers/greatestCommonDivisor.d.ts +9 -9
- package/dist/helpers/numbers/greatestCommonDivisor.js +15 -15
- package/dist/helpers/numbers/leastCommonMultiple.d.ts +9 -9
- package/dist/helpers/numbers/leastCommonMultiple.js +17 -17
- package/dist/helpers/numbers/lowestCommonDenominator.d.ts +9 -9
- package/dist/helpers/numbers/lowestCommonDenominator.js +19 -19
- package/dist/helpers/numbers/randomInteger.d.ts +11 -5
- package/dist/helpers/numbers/randomInteger.js +11 -5
- package/dist/helpers/numbers/randomNumber.d.ts +7 -6
- package/dist/helpers/numbers/randomNumber.js +7 -6
- package/dist/helpers/numbers/simplestRatio.d.ts +8 -8
- package/dist/helpers/numbers/simplestRatio.js +28 -28
- package/dist/helpers/numbers.d.ts +30 -30
- package/dist/helpers/numbers.js +89 -89
- package/dist/helpers/objects/cloneObject.d.ts +19 -19
- package/dist/helpers/objects/cloneObject.js +31 -31
- package/dist/helpers/objects/dotGet.d.ts +11 -11
- package/dist/helpers/objects/dotGet.js +59 -59
- package/dist/helpers/objects/dotNotate.d.ts +27 -27
- package/dist/helpers/objects/dotNotate.js +79 -79
- package/dist/helpers/objects/dotSet.d.ts +11 -11
- package/dist/helpers/objects/dotSet.js +53 -53
- package/dist/helpers/objects/dotUnset.d.ts +10 -10
- package/dist/helpers/objects/dotUnset.js +52 -52
- package/dist/helpers/objects/emptyObject.d.ts +8 -8
- package/dist/helpers/objects/emptyObject.js +17 -17
- package/dist/helpers/objects/filterObject.d.ts +26 -26
- package/dist/helpers/objects/filterObject.js +33 -33
- package/dist/helpers/objects/isCloneable.d.ts +8 -8
- package/dist/helpers/objects/isCloneable.js +16 -16
- package/dist/helpers/objects/isEqual.d.ts +16 -16
- package/dist/helpers/objects/isEqual.js +100 -100
- package/dist/helpers/objects/isInstanceObject.d.ts +8 -8
- package/dist/helpers/objects/isInstanceObject.js +26 -26
- package/dist/helpers/objects/isObject.d.ts +8 -8
- package/dist/helpers/objects/isObject.js +14 -14
- package/dist/helpers/objects/mapObject.d.ts +25 -25
- package/dist/helpers/objects/mapObject.js +25 -25
- package/dist/helpers/objects/mergeObjects.d.ts +12 -12
- package/dist/helpers/objects/mergeObjects.js +19 -19
- package/dist/helpers/objects/mergeObjectsBase.d.ts +35 -35
- package/dist/helpers/objects/mergeObjectsBase.js +91 -91
- package/dist/helpers/objects/mergeObjectsMutable.d.ts +12 -12
- package/dist/helpers/objects/mergeObjectsMutable.js +17 -17
- package/dist/helpers/objects/objectKeys.d.ts +13 -13
- package/dist/helpers/objects/objectKeys.js +39 -39
- package/dist/helpers/objects/objectValues.d.ts +13 -13
- package/dist/helpers/objects/objectValues.js +20 -20
- package/dist/helpers/objects/reduceObject.d.ts +30 -30
- package/dist/helpers/objects/reduceObject.js +25 -25
- package/dist/helpers/objects/setAndReturnValue.d.ts +13 -13
- package/dist/helpers/objects/setAndReturnValue.js +19 -19
- package/dist/helpers/objects/setValue.d.ts +14 -14
- package/dist/helpers/objects/setValue.js +21 -21
- package/dist/helpers/objects.d.ts +121 -121
- package/dist/helpers/objects.js +177 -177
- package/dist/helpers/strings/camelCase.d.ts +8 -8
- package/dist/helpers/strings/camelCase.js +19 -19
- package/dist/helpers/strings/kabobCase.d.ts +8 -8
- package/dist/helpers/strings/kabobCase.js +18 -18
- package/dist/helpers/strings/makeFilepath.d.ts +9 -9
- package/dist/helpers/strings/makeFilepath.js +49 -49
- package/dist/helpers/strings/makeRelativePath.d.ts +9 -9
- package/dist/helpers/strings/makeRelativePath.js +43 -43
- package/dist/helpers/strings/regexEscape.d.ts +8 -8
- package/dist/helpers/strings/regexEscape.js +15 -15
- package/dist/helpers/strings/snakeCase.d.ts +8 -8
- package/dist/helpers/strings/snakeCase.js +18 -18
- package/dist/helpers/strings/strAfter.d.ts +9 -9
- package/dist/helpers/strings/strAfter.js +18 -18
- package/dist/helpers/strings/strAfterLast.d.ts +9 -9
- package/dist/helpers/strings/strAfterLast.js +18 -18
- package/dist/helpers/strings/strBefore.d.ts +9 -9
- package/dist/helpers/strings/strBefore.js +18 -18
- package/dist/helpers/strings/strBeforeLast.d.ts +9 -9
- package/dist/helpers/strings/strBeforeLast.js +18 -18
- package/dist/helpers/strings/titleCase.d.ts +8 -8
- package/dist/helpers/strings/titleCase.js +19 -19
- package/dist/helpers/strings/ucFirst.d.ts +8 -8
- package/dist/helpers/strings/ucFirst.js +14 -14
- package/dist/helpers/strings/words.d.ts +9 -9
- package/dist/helpers/strings/words.js +15 -15
- package/dist/helpers/strings.d.ts +38 -38
- package/dist/helpers/strings.js +121 -121
- package/dist/main.d.ts +15 -15
- package/dist/main.js +103 -103
- package/package.json +4 -4
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
/**
|
|
8
|
-
* Retrieve the string part before the last search match.
|
|
9
|
-
* @memberOf module:stringHelpers
|
|
10
|
-
* @param {string} str - The string to search within.
|
|
11
|
-
* @param {string} search - The substring to search for.
|
|
12
|
-
* @returns {string} The portion of `str` before the last occurrence of `search`, or `''` if not found.
|
|
13
|
-
*/
|
|
14
|
-
const strBeforeLast = (str, search) => {
|
|
15
|
-
const index = str.lastIndexOf(search)
|
|
16
|
-
return index === -1 ? '' : str.substring(0, index)
|
|
17
|
-
}
|
|
18
|
-
const _default = exports.default = strBeforeLast
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve the string part before the last search match.
|
|
9
|
+
* @memberOf module:stringHelpers
|
|
10
|
+
* @param {string} str - The string to search within.
|
|
11
|
+
* @param {string} search - The substring to search for.
|
|
12
|
+
* @returns {string} The portion of `str` before the last occurrence of `search`, or `''` if not found.
|
|
13
|
+
*/
|
|
14
|
+
const strBeforeLast = (str, search) => {
|
|
15
|
+
const index = str.lastIndexOf(search)
|
|
16
|
+
return index === -1 ? '' : str.substring(0, index)
|
|
17
|
+
}
|
|
18
|
+
const _default = exports.default = strBeforeLast
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
3
|
-
* @memberOf module:stringHelpers
|
|
4
|
-
* @param {string} str - The string to convert.
|
|
5
|
-
* @returns {string}
|
|
6
|
-
*/
|
|
7
|
-
declare const titleCase: (str: string) => string;
|
|
8
|
-
export default titleCase;
|
|
1
|
+
/**
|
|
2
|
+
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
3
|
+
* @memberOf module:stringHelpers
|
|
4
|
+
* @param {string} str - The string to convert.
|
|
5
|
+
* @returns {string}
|
|
6
|
+
*/
|
|
7
|
+
declare const titleCase: (str: string) => string;
|
|
8
|
+
export default titleCase;
|
|
9
9
|
//# sourceMappingURL=titleCase.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
-
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
-
const _ucFirst = _interopRequireDefault(require('./ucFirst'))
|
|
10
|
-
const _words = _interopRequireDefault(require('./words'))
|
|
11
|
-
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
12
|
-
/**
|
|
13
|
-
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
14
|
-
* @memberOf module:stringHelpers
|
|
15
|
-
* @param {string} str - The string to convert.
|
|
16
|
-
* @returns {string}
|
|
17
|
-
*/
|
|
18
|
-
const titleCase = str => (0, _words.default)(str).reduce((title, part) => title ? title.concat(' ' + (0, _ucFirst.default)(part)) : (0, _ucFirst.default)(part), '')
|
|
19
|
-
const _default = exports.default = titleCase
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
+
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
+
const _ucFirst = _interopRequireDefault(require('./ucFirst'))
|
|
10
|
+
const _words = _interopRequireDefault(require('./words'))
|
|
11
|
+
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
12
|
+
/**
|
|
13
|
+
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
14
|
+
* @memberOf module:stringHelpers
|
|
15
|
+
* @param {string} str - The string to convert.
|
|
16
|
+
* @returns {string}
|
|
17
|
+
*/
|
|
18
|
+
const titleCase = str => (0, _words.default)(str).reduce((title, part) => title ? title.concat(' ' + (0, _ucFirst.default)(part)) : (0, _ucFirst.default)(part), '')
|
|
19
|
+
const _default = exports.default = titleCase
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Given a string, make the first character uppercase and the rest lowercase.
|
|
3
|
-
* @memberOf module:stringHelpers
|
|
4
|
-
* @param {string} str - The string to convert.
|
|
5
|
-
* @returns {string}
|
|
6
|
-
*/
|
|
7
|
-
declare const ucFirst: (str: string) => string;
|
|
8
|
-
export default ucFirst;
|
|
1
|
+
/**
|
|
2
|
+
* Given a string, make the first character uppercase and the rest lowercase.
|
|
3
|
+
* @memberOf module:stringHelpers
|
|
4
|
+
* @param {string} str - The string to convert.
|
|
5
|
+
* @returns {string}
|
|
6
|
+
*/
|
|
7
|
+
declare const ucFirst: (str: string) => string;
|
|
8
|
+
export default ucFirst;
|
|
9
9
|
//# sourceMappingURL=ucFirst.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
/**
|
|
8
|
-
* Given a string, make the first character uppercase and the rest lowercase.
|
|
9
|
-
* @memberOf module:stringHelpers
|
|
10
|
-
* @param {string} str - The string to convert.
|
|
11
|
-
* @returns {string}
|
|
12
|
-
*/
|
|
13
|
-
const ucFirst = str => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
|
14
|
-
const _default = exports.default = ucFirst
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
/**
|
|
8
|
+
* Given a string, make the first character uppercase and the rest lowercase.
|
|
9
|
+
* @memberOf module:stringHelpers
|
|
10
|
+
* @param {string} str - The string to convert.
|
|
11
|
+
* @returns {string}
|
|
12
|
+
*/
|
|
13
|
+
const ucFirst = str => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
|
14
|
+
const _default = exports.default = ucFirst
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Split a string into sets of numbers or letters - the shared tokenizer behind camelCase/kabobCase/snakeCase/
|
|
3
|
-
* titleCase, so each can rebuild the string in its own casing style.
|
|
4
|
-
* @memberOf module:stringHelpers
|
|
5
|
-
* @param {string} str - The string to split.
|
|
6
|
-
* @returns {Array.<string>}
|
|
7
|
-
*/
|
|
8
|
-
declare const words: (str: string) => Array<string>;
|
|
9
|
-
export default words;
|
|
1
|
+
/**
|
|
2
|
+
* Split a string into sets of numbers or letters - the shared tokenizer behind camelCase/kabobCase/snakeCase/
|
|
3
|
+
* titleCase, so each can rebuild the string in its own casing style.
|
|
4
|
+
* @memberOf module:stringHelpers
|
|
5
|
+
* @param {string} str - The string to split.
|
|
6
|
+
* @returns {Array.<string>}
|
|
7
|
+
*/
|
|
8
|
+
declare const words: (str: string) => Array<string>;
|
|
9
|
+
export default words;
|
|
10
10
|
//# sourceMappingURL=words.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
/**
|
|
8
|
-
* Split a string into sets of numbers or letters - the shared tokenizer behind camelCase/kabobCase/snakeCase/
|
|
9
|
-
* titleCase, so each can rebuild the string in its own casing style.
|
|
10
|
-
* @memberOf module:stringHelpers
|
|
11
|
-
* @param {string} str - The string to split.
|
|
12
|
-
* @returns {Array.<string>}
|
|
13
|
-
*/
|
|
14
|
-
const words = str => str.match(/\d+|[A-Z]?[a-z]+|[A-Za-z]+/g)
|
|
15
|
-
const _default = exports.default = words
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
/**
|
|
8
|
+
* Split a string into sets of numbers or letters - the shared tokenizer behind camelCase/kabobCase/snakeCase/
|
|
9
|
+
* titleCase, so each can rebuild the string in its own casing style.
|
|
10
|
+
* @memberOf module:stringHelpers
|
|
11
|
+
* @param {string} str - The string to split.
|
|
12
|
+
* @returns {Array.<string>}
|
|
13
|
+
*/
|
|
14
|
+
const words = str => str.match(/\d+|[A-Z]?[a-z]+|[A-Za-z]+/g)
|
|
15
|
+
const _default = exports.default = words
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manage how strings are manipulated with these utilities.
|
|
3
|
-
* @file
|
|
4
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
-
* @version 1.0.0
|
|
6
|
-
* @module stringHelpers
|
|
7
|
-
* @memberOf module:siFunciona
|
|
8
|
-
*/
|
|
9
|
-
import camelCase from './strings/camelCase';
|
|
10
|
-
import kabobCase from './strings/kabobCase';
|
|
11
|
-
import makeFilepath from './strings/makeFilepath';
|
|
12
|
-
import makeRelativePath from './strings/makeRelativePath';
|
|
13
|
-
import regexEscape from './strings/regexEscape';
|
|
14
|
-
import snakeCase from './strings/snakeCase';
|
|
15
|
-
import strAfter from './strings/strAfter';
|
|
16
|
-
import strAfterLast from './strings/strAfterLast';
|
|
17
|
-
import strBefore from './strings/strBefore';
|
|
18
|
-
import strBeforeLast from './strings/strBeforeLast';
|
|
19
|
-
import titleCase from './strings/titleCase';
|
|
20
|
-
import ucFirst from './strings/ucFirst';
|
|
21
|
-
import words from './strings/words';
|
|
22
|
-
export { camelCase, kabobCase, makeFilepath, makeRelativePath, regexEscape, snakeCase, strAfter, strAfterLast, strBefore, strBeforeLast, titleCase, ucFirst, words };
|
|
23
|
-
declare const _default: {
|
|
24
|
-
camelCase: (str: string) => string;
|
|
25
|
-
kabobCase: (str: string) => string;
|
|
26
|
-
makeFilepath: (root: string, append?: string) => string;
|
|
27
|
-
makeRelativePath: (fromFile: string, toFile: string) => string;
|
|
28
|
-
regexEscape: (str: string) => string;
|
|
29
|
-
snakeCase: (str: string) => string;
|
|
30
|
-
strAfter: (str: string, search: string) => string;
|
|
31
|
-
strAfterLast: (str: string, search: string) => string;
|
|
32
|
-
strBefore: (str: string, search: string) => string;
|
|
33
|
-
strBeforeLast: (str: string, search: string) => string;
|
|
34
|
-
titleCase: (str: string) => string;
|
|
35
|
-
ucFirst: (str: string) => string;
|
|
36
|
-
words: (str: string) => Array<string>;
|
|
37
|
-
};
|
|
38
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* Manage how strings are manipulated with these utilities.
|
|
3
|
+
* @file
|
|
4
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
* @module stringHelpers
|
|
7
|
+
* @memberOf module:siFunciona
|
|
8
|
+
*/
|
|
9
|
+
import camelCase from './strings/camelCase';
|
|
10
|
+
import kabobCase from './strings/kabobCase';
|
|
11
|
+
import makeFilepath from './strings/makeFilepath';
|
|
12
|
+
import makeRelativePath from './strings/makeRelativePath';
|
|
13
|
+
import regexEscape from './strings/regexEscape';
|
|
14
|
+
import snakeCase from './strings/snakeCase';
|
|
15
|
+
import strAfter from './strings/strAfter';
|
|
16
|
+
import strAfterLast from './strings/strAfterLast';
|
|
17
|
+
import strBefore from './strings/strBefore';
|
|
18
|
+
import strBeforeLast from './strings/strBeforeLast';
|
|
19
|
+
import titleCase from './strings/titleCase';
|
|
20
|
+
import ucFirst from './strings/ucFirst';
|
|
21
|
+
import words from './strings/words';
|
|
22
|
+
export { camelCase, kabobCase, makeFilepath, makeRelativePath, regexEscape, snakeCase, strAfter, strAfterLast, strBefore, strBeforeLast, titleCase, ucFirst, words };
|
|
23
|
+
declare const _default: {
|
|
24
|
+
camelCase: (str: string) => string;
|
|
25
|
+
kabobCase: (str: string) => string;
|
|
26
|
+
makeFilepath: (root: string, append?: string) => string;
|
|
27
|
+
makeRelativePath: (fromFile: string, toFile: string) => string;
|
|
28
|
+
regexEscape: (str: string) => string;
|
|
29
|
+
snakeCase: (str: string) => string;
|
|
30
|
+
strAfter: (str: string, search: string) => string;
|
|
31
|
+
strAfterLast: (str: string, search: string) => string;
|
|
32
|
+
strBefore: (str: string, search: string) => string;
|
|
33
|
+
strBeforeLast: (str: string, search: string) => string;
|
|
34
|
+
titleCase: (str: string) => string;
|
|
35
|
+
ucFirst: (str: string) => string;
|
|
36
|
+
words: (str: string) => Array<string>;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
39
|
//# sourceMappingURL=strings.d.ts.map
|
package/dist/helpers/strings.js
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
Object.defineProperty(exports, 'camelCase', {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _camelCase.default
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
exports.default = void 0
|
|
13
|
-
Object.defineProperty(exports, 'kabobCase', {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _kabobCase.default
|
|
17
|
-
}
|
|
18
|
-
})
|
|
19
|
-
Object.defineProperty(exports, 'makeFilepath', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return _makeFilepath.default
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
Object.defineProperty(exports, 'makeRelativePath', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return _makeRelativePath.default
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
Object.defineProperty(exports, 'regexEscape', {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return _regexEscape.default
|
|
35
|
-
}
|
|
36
|
-
})
|
|
37
|
-
Object.defineProperty(exports, 'snakeCase', {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () {
|
|
40
|
-
return _snakeCase.default
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
Object.defineProperty(exports, 'strAfter', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _strAfter.default
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
Object.defineProperty(exports, 'strAfterLast', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return _strAfterLast.default
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
Object.defineProperty(exports, 'strBefore', {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () {
|
|
58
|
-
return _strBefore.default
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
Object.defineProperty(exports, 'strBeforeLast', {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () {
|
|
64
|
-
return _strBeforeLast.default
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
Object.defineProperty(exports, 'titleCase', {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () {
|
|
70
|
-
return _titleCase.default
|
|
71
|
-
}
|
|
72
|
-
})
|
|
73
|
-
Object.defineProperty(exports, 'ucFirst', {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () {
|
|
76
|
-
return _ucFirst.default
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
Object.defineProperty(exports, 'words', {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () {
|
|
82
|
-
return _words.default
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
var _camelCase = _interopRequireDefault(require('./strings/camelCase'))
|
|
86
|
-
var _kabobCase = _interopRequireDefault(require('./strings/kabobCase'))
|
|
87
|
-
var _makeFilepath = _interopRequireDefault(require('./strings/makeFilepath'))
|
|
88
|
-
var _makeRelativePath = _interopRequireDefault(require('./strings/makeRelativePath'))
|
|
89
|
-
var _regexEscape = _interopRequireDefault(require('./strings/regexEscape'))
|
|
90
|
-
var _snakeCase = _interopRequireDefault(require('./strings/snakeCase'))
|
|
91
|
-
var _strAfter = _interopRequireDefault(require('./strings/strAfter'))
|
|
92
|
-
var _strAfterLast = _interopRequireDefault(require('./strings/strAfterLast'))
|
|
93
|
-
var _strBefore = _interopRequireDefault(require('./strings/strBefore'))
|
|
94
|
-
var _strBeforeLast = _interopRequireDefault(require('./strings/strBeforeLast'))
|
|
95
|
-
var _titleCase = _interopRequireDefault(require('./strings/titleCase'))
|
|
96
|
-
var _ucFirst = _interopRequireDefault(require('./strings/ucFirst'))
|
|
97
|
-
var _words = _interopRequireDefault(require('./strings/words'))
|
|
98
|
-
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
99
|
-
/**
|
|
100
|
-
* Manage how strings are manipulated with these utilities.
|
|
101
|
-
* @file
|
|
102
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
103
|
-
* @version 1.0.0
|
|
104
|
-
* @module stringHelpers
|
|
105
|
-
* @memberOf module:siFunciona
|
|
106
|
-
*/
|
|
107
|
-
const _default = exports.default = {
|
|
108
|
-
camelCase: _camelCase.default,
|
|
109
|
-
kabobCase: _kabobCase.default,
|
|
110
|
-
makeFilepath: _makeFilepath.default,
|
|
111
|
-
makeRelativePath: _makeRelativePath.default,
|
|
112
|
-
regexEscape: _regexEscape.default,
|
|
113
|
-
snakeCase: _snakeCase.default,
|
|
114
|
-
strAfter: _strAfter.default,
|
|
115
|
-
strAfterLast: _strAfterLast.default,
|
|
116
|
-
strBefore: _strBefore.default,
|
|
117
|
-
strBeforeLast: _strBeforeLast.default,
|
|
118
|
-
titleCase: _titleCase.default,
|
|
119
|
-
ucFirst: _ucFirst.default,
|
|
120
|
-
words: _words.default
|
|
121
|
-
}
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
Object.defineProperty(exports, 'camelCase', {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _camelCase.default
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
exports.default = void 0
|
|
13
|
+
Object.defineProperty(exports, 'kabobCase', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _kabobCase.default
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
Object.defineProperty(exports, 'makeFilepath', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _makeFilepath.default
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
Object.defineProperty(exports, 'makeRelativePath', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _makeRelativePath.default
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
Object.defineProperty(exports, 'regexEscape', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _regexEscape.default
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
Object.defineProperty(exports, 'snakeCase', {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return _snakeCase.default
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
Object.defineProperty(exports, 'strAfter', {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _strAfter.default
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
Object.defineProperty(exports, 'strAfterLast', {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return _strAfterLast.default
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
Object.defineProperty(exports, 'strBefore', {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () {
|
|
58
|
+
return _strBefore.default
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
Object.defineProperty(exports, 'strBeforeLast', {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () {
|
|
64
|
+
return _strBeforeLast.default
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
Object.defineProperty(exports, 'titleCase', {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () {
|
|
70
|
+
return _titleCase.default
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
Object.defineProperty(exports, 'ucFirst', {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () {
|
|
76
|
+
return _ucFirst.default
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
Object.defineProperty(exports, 'words', {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () {
|
|
82
|
+
return _words.default
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
var _camelCase = _interopRequireDefault(require('./strings/camelCase'))
|
|
86
|
+
var _kabobCase = _interopRequireDefault(require('./strings/kabobCase'))
|
|
87
|
+
var _makeFilepath = _interopRequireDefault(require('./strings/makeFilepath'))
|
|
88
|
+
var _makeRelativePath = _interopRequireDefault(require('./strings/makeRelativePath'))
|
|
89
|
+
var _regexEscape = _interopRequireDefault(require('./strings/regexEscape'))
|
|
90
|
+
var _snakeCase = _interopRequireDefault(require('./strings/snakeCase'))
|
|
91
|
+
var _strAfter = _interopRequireDefault(require('./strings/strAfter'))
|
|
92
|
+
var _strAfterLast = _interopRequireDefault(require('./strings/strAfterLast'))
|
|
93
|
+
var _strBefore = _interopRequireDefault(require('./strings/strBefore'))
|
|
94
|
+
var _strBeforeLast = _interopRequireDefault(require('./strings/strBeforeLast'))
|
|
95
|
+
var _titleCase = _interopRequireDefault(require('./strings/titleCase'))
|
|
96
|
+
var _ucFirst = _interopRequireDefault(require('./strings/ucFirst'))
|
|
97
|
+
var _words = _interopRequireDefault(require('./strings/words'))
|
|
98
|
+
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
99
|
+
/**
|
|
100
|
+
* Manage how strings are manipulated with these utilities.
|
|
101
|
+
* @file
|
|
102
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
103
|
+
* @version 1.0.0
|
|
104
|
+
* @module stringHelpers
|
|
105
|
+
* @memberOf module:siFunciona
|
|
106
|
+
*/
|
|
107
|
+
const _default = exports.default = {
|
|
108
|
+
camelCase: _camelCase.default,
|
|
109
|
+
kabobCase: _kabobCase.default,
|
|
110
|
+
makeFilepath: _makeFilepath.default,
|
|
111
|
+
makeRelativePath: _makeRelativePath.default,
|
|
112
|
+
regexEscape: _regexEscape.default,
|
|
113
|
+
snakeCase: _snakeCase.default,
|
|
114
|
+
strAfter: _strAfter.default,
|
|
115
|
+
strAfterLast: _strAfterLast.default,
|
|
116
|
+
strBefore: _strBefore.default,
|
|
117
|
+
strBeforeLast: _strBeforeLast.default,
|
|
118
|
+
titleCase: _titleCase.default,
|
|
119
|
+
ucFirst: _ucFirst.default,
|
|
120
|
+
words: _words.default
|
|
121
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All the siFunciona system functions for stringing together functions and simplifying logic.
|
|
3
|
-
* @file
|
|
4
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
-
* @version 1.0.0
|
|
6
|
-
* @module siFunciona
|
|
7
|
-
*/
|
|
8
|
-
export * from './helpers/arrays';
|
|
9
|
-
export * from './helpers/descriptors';
|
|
10
|
-
export * from './helpers/functions';
|
|
11
|
-
export * from './helpers/numbers';
|
|
12
|
-
export * from './helpers/objects';
|
|
13
|
-
export * from './helpers/strings';
|
|
14
|
-
declare const siFunciona: any;
|
|
15
|
-
export default siFunciona;
|
|
1
|
+
/**
|
|
2
|
+
* All the siFunciona system functions for stringing together functions and simplifying logic.
|
|
3
|
+
* @file
|
|
4
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
* @module siFunciona
|
|
7
|
+
*/
|
|
8
|
+
export * from './helpers/arrays';
|
|
9
|
+
export * from './helpers/descriptors';
|
|
10
|
+
export * from './helpers/functions';
|
|
11
|
+
export * from './helpers/numbers';
|
|
12
|
+
export * from './helpers/objects';
|
|
13
|
+
export * from './helpers/strings';
|
|
14
|
+
declare const siFunciona: any;
|
|
15
|
+
export default siFunciona;
|
|
16
16
|
//# sourceMappingURL=main.d.ts.map
|