pure-formatters 2.0.4 → 3.0.1

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/LICENSE CHANGED
@@ -1,9 +1,20 @@
1
1
  The MIT License
2
2
 
3
- Copyright 2017 Travis Horn
3
+ Copyright 2026 Travis Horn
4
4
 
5
- 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, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
6
11
 
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
8
14
 
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,121 +1,60 @@
1
1
  # Pure Formatters
2
2
 
3
- A collection of pure JS functions that return formatted data. Useful in any view engine.
3
+ A collection of pure JS functions that return formatted data. Useful in any view
4
+ engine.
4
5
 
5
6
  ## Installation
6
7
 
7
8
  ### Node.js
8
9
 
9
- npm install --save pure-formatters
10
+ ```bash
11
+ npm install pure-formatters
12
+ ```
10
13
 
11
14
  ### Browser
12
15
 
13
- <script src="node_modules/pure-formatters/dist/pure-formatters.js"></script>
14
-
15
- <!-- Or CDN -->
16
- <script src="https://unpkg.com/pure-formatters/dist/pure-formatters.js"></script>
16
+ ```html
17
+ <script type="module" src="https://unpkg.com/pure-formatters/index.js"></script>
18
+ ```
17
19
 
18
20
  ## Usage
19
21
 
20
- ### Browser
22
+ ```javascript
23
+ import { sentenceList } from "pure-formatters";
21
24
 
22
- // After adding script tag, the global variable pf is available
23
- console.log(pf.upperCase('hello world'));
25
+ const list = ["Bettye Norton", "Melissa Reed", "Kari Osborne"];
24
26
 
25
- ### Node.js
27
+ sentenceList(list);
28
+ // Bettye Norton, Melissa Reed, and Kari Osborne.
29
+ ```
26
30
 
27
- const pf = require('pure-formatters');
28
-
29
- console.log(pf.upperCase('hello world'));
30
-
31
- ### React
32
-
33
- import { Component } from 'react';
34
- import { upperCase } from 'pure-formatters';
35
-
36
- class App extends Component {
37
- render() {
38
- return (
39
- <div>
40
- {upperCase('hello world')}
41
- </div>
42
- );
43
- }
44
- }
45
-
46
- export default App;
47
-
48
- ### Vue
49
-
50
- <template>
51
- <div>
52
- {{ msg | upperCase }}
53
- </div>
54
- </template>
55
-
56
- <script>
57
- import { upperCase } from 'pure-formatters';
58
-
59
- export default {
60
- name: 'component-name',
61
- data() {
62
- return { msg: 'hello world' },
63
- },
64
- filters: {
65
- upperCase,
66
- },
67
- };
68
- </script>
69
-
70
- ## Formatters
71
-
72
- | Symbol | Description | Input | Output |
73
- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------- |
74
- | camelCase | Converts string to camel case. | 'Foo Bar' | 'fooBar' |
75
- | | | '--foo-bar--' | 'fooBar' |
76
- | | | '\_\_FOO_BAR\_\_' | 'fooBar' |
77
- | capitalize | Converts the first character of string to upper case and the remaining to lower case | 'FRED' | 'Fred' |
78
- | deburr | Deburrs string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks. | 'déjà vu' | 'deja vu' |
79
- | displayNull | If input is null or '', return 'null' | '' | 'null' |
80
- | | | 'Hello World' | 'Hello World' |
81
- | | | '', 'empty' | 'empty' |
82
- | escape | Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding HTML entities. | 'fred, barney, & pebbles' | 'fred, barney, &amp; pebbles' |
83
- | escapeRegExp | Escapes the RegExp special characters "^", "$", "", ".", "\*", "+", "?", "(", ")", "[", "]", "{", "}", and "\|" in string. | '\[lodash\]\(htt&#8203;tps://lodash.com/\)' | '\\[lodash\\]\\(htt&#8203;tps://lodash\\.com/\\)' |
84
- | kebabCase | Converts string to kebab case. | 'Foo Bar' | 'foo-bar' |
85
- | | | 'fooBar' | 'foo-bar' |
86
- | | | '\_\_FOO_BAR\_\_' | 'foo-bar' |
87
- | lowerCase | Converts string, as space separated words, to lower case. | '--Foo-Bar--' | 'foo bar' |
88
- | | | 'fooBar' | 'foo bar' |
89
- | | | '\_\_FOO_BAR\_\_' | 'foo bar' |
90
- | lowerFirst | Converts the first character of string to lower case. | 'Fred' | 'fred' |
91
- | | | 'FRED' | 'fRED' |
92
- | pad | Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length. | 'abc', 8 | ' abc ' |
93
- | | | 'abc', 8, '\_-' | '_-abc_-\_' |
94
- | | | 'abc', 3 | 'abc' |
95
- | sentenceList | Combines array elements with commas and "and" | ['Bettye Norton'] | 'Bettye Norton' |
96
- | | | ['Bettye Norton', 'Melisa Reed'] | 'Bettye Norton and Melisa Reed' |
97
- | | | ['Bettye Norton', 'Melisa Reed', 'Kari Osborne'] | 'Bettye Norton, Melisa Reed, and Kari Osborne' |
98
- | | | [{ name: 'Bettye Norton' }], 'name' | 'Bettye Norton' |
99
- | upperCase | Converts string, as space separated words, to upper case. | '--foo-bar' | 'FOO BAR' |
100
- | | | 'fooBar' | 'FOO BAR' |
101
- | | | '\_\_foo_bar\_\_' | 'FOO BAR' |
102
- | usd | Adds a dollar sign and rounds to 2 decimal places | 1.5 | '$1.50' |
103
- | | | 150, 'c' | '$1.50' |
104
- | padEnd | Description, input, and output coming soon. | | |
105
- | padStart | Description, input, and output coming soon. | | |
106
- | repeat | Description, input, and output coming soon. | | |
107
- | replace | Description, input, and output coming soon. | | |
108
- | snakeCase | Description, input, and output coming soon. | | |
109
- | startCase | Description, input, and output coming soon. | | |
110
- | toLower | Description, input, and output coming soon. | | |
111
- | toUpper | Description, input, and output coming soon. | | |
112
- | trim | Description, input, and output coming soon. | | |
113
- | trimEnd | Description, input, and output coming soon. | | |
114
- | trimStart | Description, input, and output coming soon. | | |
115
- | truncate | Description, input, and output coming soon. | | |
116
- | unescape | Description, input, and output coming soon. | | |
117
- | upperFirst | Description, input, and output coming soon. | | |
31
+ For full API documentation, visit
32
+ [https://travishorn.github.io/pure-formatters](https://travishorn.github.io/pure-formatters).
118
33
 
119
34
  ## Contributing
120
35
 
121
- See [CONTRIBUTING.md](https://github.com/travishorn/pure-formatters/blob/master/CONTRIBUTING.md)
36
+ See
37
+ [CONTRIBUTING.md](https://github.com/travishorn/pure-formatters/blob/master/CONTRIBUTING.md)
38
+
39
+ ## Licensee
40
+
41
+ The MIT License
42
+
43
+ Copyright 2026 Travis Horn
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
46
+ this software and associated documentation files (the "Software"), to deal in
47
+ the Software without restriction, including without limitation the rights to
48
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
49
+ the Software, and to permit persons to whom the Software is furnished to do so,
50
+ subject to the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be included in all
53
+ copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
57
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
58
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
59
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
60
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json CHANGED
@@ -1,31 +1,48 @@
1
1
  {
2
2
  "name": "pure-formatters",
3
- "version": "2.0.4",
3
+ "version": "3.0.1",
4
4
  "description": "A collection of pure JS functions that return formatted data. Useful in any view engine.",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "npm run build && mocha ./test",
8
- "build": "webpack",
9
- "prepublish": "npm run build"
10
- },
11
- "author": "Travis Horn (https://travishorn.com)",
12
- "license": "MIT",
13
5
  "repository": {
14
6
  "type": "git",
15
7
  "url": "https://github.com/travishorn/pure-formatters"
16
8
  },
17
- "devDependencies": {
18
- "babel-core": "^6.26.0",
19
- "babel-loader": "^7.1.2",
20
- "babel-preset-env": "^1.6.0",
21
- "mocha": "^3.5.3",
22
- "uglifyjs-webpack-plugin": "^0.4.6",
23
- "webpack": "^3.6.0"
9
+ "bugs": {
10
+ "url": "https://github.com/travishorn/pure-formatters/issues"
24
11
  },
12
+ "homepage": "https://github.com/travishorn/pure-formatters#readme",
13
+ "exports": "./src/index.js",
25
14
  "files": [
26
- "dist/"
15
+ "src"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "scripts": {
21
+ "docs": "typedoc --entryPoints src/index.js --out docs",
22
+ "format": "prettier --write .",
23
+ "lint:format": "prettier --check .",
24
+ "lint:types": "tsc --noEmit",
25
+ "lint": "eslint .",
26
+ "test": "vitest run"
27
+ },
28
+ "keywords": [
29
+ "format",
30
+ "formatter",
31
+ "formatting",
32
+ "pure"
27
33
  ],
28
- "dependencies": {
29
- "lodash": "^4.17.4"
34
+ "author": "Travis Horn <travis@travishorn.com> (https://travishorn.com/)",
35
+ "license": "MIT",
36
+ "type": "module",
37
+ "devDependencies": {
38
+ "@eslint/js": "^10.0.1",
39
+ "@vitest/coverage-v8": "^5.1.0",
40
+ "eslint": "^10.14.0",
41
+ "eslint-config-prettier": "^10.1.8",
42
+ "globals": "^17.14.0",
43
+ "prettier": "^3.9.10",
44
+ "typedoc": "^0.28.20",
45
+ "typescript": "^6.0.3",
46
+ "vitest": "^5.1.0"
30
47
  }
31
48
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Replaces `null` and the empty string with a display value, leaving all other
3
+ * inputs unchanged.
4
+ *
5
+ * @param {*} input The value to check.
6
+ * @param {string} [display="null"] The value to return when `input` is `null`
7
+ * or `""`.
8
+ * @returns {*} The display value for `null` or `""`; otherwise, the original
9
+ * input.
10
+ *
11
+ * @example
12
+ * displayNull(""); // "null"
13
+ * @example
14
+ * displayNull("Hello World"); // "Hello World"
15
+ * @example
16
+ * displayNull("", "empty"); // "empty"
17
+ */
18
+ export function displayNull(input, display = "null") {
19
+ if (input === null) return display;
20
+ if (input === "") return display;
21
+ return input;
22
+ }
package/src/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { displayNull } from "./displayNull.js";
2
+ export { sentenceList } from "./sentenceList.js";
3
+ export { usd } from "./usd.js";
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Formats an array as a sentence-style list, joining the final item with
3
+ * "and". When `key` is provided, the value at that property is used for each
4
+ * item instead of the item itself. An empty array produces an empty string.
5
+ *
6
+ * @param {Array<*>} inputArray Items to format.
7
+ * @param {string} [key] Optional property name to read from each item.
8
+ * @returns {*} The formatted list. For a one-item array, the original item (or
9
+ * its selected property) is returned without string conversion.
10
+ *
11
+ * @example
12
+ * sentenceList(["Bettye Norton"]); // "Bettye Norton"
13
+ * @example
14
+ * sentenceList(["Bettye Norton", "Melisa Reed"]);
15
+ * // "Bettye Norton and Melisa Reed"
16
+ * @example
17
+ * sentenceList(["Bettye Norton", "Melisa Reed", "Kari Osborne"]);
18
+ * // "Bettye Norton, Melisa Reed, and Kari Osborne"
19
+ * @example
20
+ * sentenceList([{ name: "Bettye Norton" }], "name"); // "Bettye Norton"
21
+ */
22
+ export function sentenceList(inputArray, key) {
23
+ let output = "";
24
+
25
+ if (inputArray.length === 1) {
26
+ if (!key) {
27
+ output = inputArray[0];
28
+ } else {
29
+ output = inputArray[0][key];
30
+ }
31
+ } else if (inputArray.length === 2) {
32
+ if (!key) {
33
+ output = `${inputArray[0]} and ${inputArray[1]}`;
34
+ } else {
35
+ output = `${inputArray[0][key]} and ${inputArray[1][key]}`;
36
+ }
37
+ } else {
38
+ inputArray.forEach((item, i) => {
39
+ if (i === inputArray.length - 1) {
40
+ output += "and ";
41
+ }
42
+
43
+ if (!key) {
44
+ output += item;
45
+ } else {
46
+ output += item[key];
47
+ }
48
+
49
+ if (inputArray.length !== 2 && i < inputArray.length - 1) {
50
+ output += ", ";
51
+ }
52
+ });
53
+ }
54
+
55
+ return output;
56
+ }
package/src/usd.js ADDED
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Formats a numeric amount as US dollars with two decimal places. By default,
3
+ * `amount` is treated as dollars; pass `"c"` as `denomination` to treat it as
4
+ * cents and convert it to dollars first.
5
+ *
6
+ * @param {number|string} amount Amount in dollars, or in cents when
7
+ * `denomination` is `"c"`. Strings are parsed as floating-point numbers.
8
+ * @param {string} [denomination] Use `"c"` to indicate that `amount` is in
9
+ * cents; other values leave it interpreted as dollars.
10
+ * @returns {string} The amount prefixed with `$` and formatted to two decimal
11
+ * places.
12
+ *
13
+ * @example
14
+ * usd(1.5); // "$1.50"
15
+ * @example
16
+ * usd(150, "c"); // "$1.50"
17
+ */
18
+ export function usd(amount, denomination) {
19
+ const isCents = denomination === "c";
20
+ const stringAmount = typeof amount === "string" ? amount : amount.toString();
21
+
22
+ const nAmount = isCents
23
+ ? parseFloat(stringAmount) / 100
24
+ : parseFloat(stringAmount);
25
+
26
+ return `$${nAmount.toFixed(2)}`;
27
+ }
@@ -1,579 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, {
41
- /******/ configurable: false,
42
- /******/ enumerable: true,
43
- /******/ get: getter
44
- /******/ });
45
- /******/ }
46
- /******/ };
47
- /******/
48
- /******/ // getDefaultExport function for compatibility with non-harmony modules
49
- /******/ __webpack_require__.n = function(module) {
50
- /******/ var getter = module && module.__esModule ?
51
- /******/ function getDefault() { return module['default']; } :
52
- /******/ function getModuleExports() { return module; };
53
- /******/ __webpack_require__.d(getter, 'a', getter);
54
- /******/ return getter;
55
- /******/ };
56
- /******/
57
- /******/ // Object.prototype.hasOwnProperty.call
58
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
59
- /******/
60
- /******/ // __webpack_public_path__
61
- /******/ __webpack_require__.p = "";
62
- /******/
63
- /******/ // Load entry module and return exports
64
- /******/ return __webpack_require__(__webpack_require__.s = 28);
65
- /******/ })
66
- /************************************************************************/
67
- /******/ ([
68
- /* 0 */
69
- /***/ (function(module, exports) {
70
-
71
- module.exports = require("lodash");
72
-
73
- /***/ }),
74
- /* 1 */
75
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
76
-
77
- "use strict";
78
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
79
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
80
-
81
-
82
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["camelCase"])(str));
83
-
84
-
85
- /***/ }),
86
- /* 2 */
87
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
88
-
89
- "use strict";
90
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
91
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
92
-
93
-
94
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["capitalize"])(str));
95
-
96
-
97
- /***/ }),
98
- /* 3 */
99
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
100
-
101
- "use strict";
102
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
103
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
104
-
105
-
106
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["deburr"])(str));
107
-
108
-
109
- /***/ }),
110
- /* 4 */
111
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
112
-
113
- "use strict";
114
- /* harmony default export */ __webpack_exports__["a"] = ((input, display) => {
115
- if (input === null) return display || 'null';
116
- if (input === '') return display || 'null';
117
- return input;
118
- });
119
-
120
-
121
- /***/ }),
122
- /* 5 */
123
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
124
-
125
- "use strict";
126
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
127
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
128
-
129
-
130
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["escape"])(str));
131
-
132
-
133
- /***/ }),
134
- /* 6 */
135
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
136
-
137
- "use strict";
138
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
139
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
140
-
141
-
142
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["escapeRegExp"])(str));
143
-
144
-
145
- /***/ }),
146
- /* 7 */
147
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
148
-
149
- "use strict";
150
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
151
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
152
-
153
-
154
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["kebabCase"])(str));
155
-
156
-
157
- /***/ }),
158
- /* 8 */
159
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
160
-
161
- "use strict";
162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
163
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
164
-
165
-
166
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["lowerCase"])(str));
167
-
168
-
169
- /***/ }),
170
- /* 9 */
171
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
172
-
173
- "use strict";
174
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
175
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
176
-
177
-
178
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["lowerFirst"])(str));
179
-
180
-
181
- /***/ }),
182
- /* 10 */
183
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
184
-
185
- "use strict";
186
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
187
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
188
-
189
-
190
- /* harmony default export */ __webpack_exports__["a"] = ((str, len, chars) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["pad"])(str, len, chars));
191
-
192
-
193
- /***/ }),
194
- /* 11 */
195
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
196
-
197
- "use strict";
198
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
199
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
200
-
201
-
202
- /* harmony default export */ __webpack_exports__["a"] = ((str, len, chars) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["padEnd"])(str, len, chars));
203
-
204
-
205
- /***/ }),
206
- /* 12 */
207
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
208
-
209
- "use strict";
210
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
211
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
212
-
213
-
214
- /* harmony default export */ __webpack_exports__["a"] = ((str, len, chars) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["padStart"])(str, len, chars));
215
-
216
-
217
- /***/ }),
218
- /* 13 */
219
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
220
-
221
- "use strict";
222
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
223
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
224
-
225
-
226
- /* harmony default export */ __webpack_exports__["a"] = ((str, n) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["repeat"])(str, n));
227
-
228
-
229
- /***/ }),
230
- /* 14 */
231
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
232
-
233
- "use strict";
234
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
235
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
236
-
237
-
238
- /* harmony default export */ __webpack_exports__["a"] = ((str, pattern, replacement) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["replace"])(str, pattern, replacement));
239
-
240
-
241
- /***/ }),
242
- /* 15 */
243
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
244
-
245
- "use strict";
246
- /* harmony default export */ __webpack_exports__["a"] = ((inputArray, key) => {
247
- let output = '';
248
-
249
- if (inputArray.length === 1) {
250
- if (!key) {
251
- output = inputArray[0];
252
- } else {
253
- output = inputArray[0][key];
254
- }
255
- } else if (inputArray.length === 2) {
256
- if (!key) {
257
- output = `${inputArray[0]} and ${inputArray[1]}`;
258
- } else {
259
- output = `${inputArray[0][key]} and ${inputArray[1][key]}`;
260
- }
261
- } else {
262
- inputArray.forEach((item, i) => {
263
- if (i === inputArray.length - 1) {
264
- output += 'and ';
265
- }
266
-
267
- if (!key) {
268
- output += item;
269
- } else {
270
- output += item[key];
271
- }
272
-
273
- if (inputArray.length !== 2 && i < inputArray.length - 1) {
274
- output += ', ';
275
- }
276
- });
277
- }
278
-
279
- return output;
280
- });
281
-
282
-
283
- /***/ }),
284
- /* 16 */
285
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
286
-
287
- "use strict";
288
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
289
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
290
-
291
-
292
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["snakeCase"])(str));
293
-
294
-
295
- /***/ }),
296
- /* 17 */
297
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
298
-
299
- "use strict";
300
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
301
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
302
-
303
-
304
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["startCase"])(str));
305
-
306
-
307
- /***/ }),
308
- /* 18 */
309
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
310
-
311
- "use strict";
312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
313
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
314
-
315
-
316
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["toLower"])(str));
317
-
318
-
319
- /***/ }),
320
- /* 19 */
321
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
322
-
323
- "use strict";
324
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
325
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
326
-
327
-
328
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["toUpper"])(str));
329
-
330
-
331
- /***/ }),
332
- /* 20 */
333
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
334
-
335
- "use strict";
336
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
337
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
338
-
339
-
340
- /* harmony default export */ __webpack_exports__["a"] = ((str, chars) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["trim"])(str, chars));
341
-
342
-
343
- /***/ }),
344
- /* 21 */
345
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
346
-
347
- "use strict";
348
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
349
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
350
-
351
-
352
- /* harmony default export */ __webpack_exports__["a"] = ((str, chars) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["trimEnd"])(str, chars));
353
-
354
-
355
- /***/ }),
356
- /* 22 */
357
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
358
-
359
- "use strict";
360
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
361
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
362
-
363
-
364
- /* harmony default export */ __webpack_exports__["a"] = ((str, chars) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["trimStart"])(str, chars));
365
-
366
-
367
- /***/ }),
368
- /* 23 */
369
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
370
-
371
- "use strict";
372
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
373
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
374
-
375
-
376
- /* harmony default export */ __webpack_exports__["a"] = ((str, options) => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["truncate"])(str, options));
377
-
378
-
379
- /***/ }),
380
- /* 24 */
381
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
382
-
383
- "use strict";
384
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
385
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
386
-
387
-
388
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["unescape"])(str));
389
-
390
-
391
- /***/ }),
392
- /* 25 */
393
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
394
-
395
- "use strict";
396
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
397
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
398
-
399
-
400
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["upperCase"])(str));
401
-
402
-
403
- /***/ }),
404
- /* 26 */
405
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
406
-
407
- "use strict";
408
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash__ = __webpack_require__(0);
409
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__);
410
-
411
-
412
- /* harmony default export */ __webpack_exports__["a"] = (str => Object(__WEBPACK_IMPORTED_MODULE_0_lodash__["upperFirst"])(str));
413
-
414
-
415
- /***/ }),
416
- /* 27 */
417
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
418
-
419
- "use strict";
420
- /* harmony default export */ __webpack_exports__["a"] = ((amount, denomination) => {
421
- let nAmount = parseFloat(amount);
422
-
423
- if (denomination === 'c') {
424
- nAmount /= 100;
425
- }
426
-
427
- return `$${nAmount.toFixed(2)}`;
428
- });
429
-
430
-
431
- /***/ }),
432
- /* 28 */
433
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
434
-
435
- "use strict";
436
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
437
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__camelCase__ = __webpack_require__(1);
438
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__capitalize__ = __webpack_require__(2);
439
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__deburr__ = __webpack_require__(3);
440
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__displayNull__ = __webpack_require__(4);
441
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__escape__ = __webpack_require__(5);
442
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__escapeRegExp__ = __webpack_require__(6);
443
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__kebabCase__ = __webpack_require__(7);
444
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__lowerCase__ = __webpack_require__(8);
445
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__lowerFirst__ = __webpack_require__(9);
446
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pad__ = __webpack_require__(10);
447
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__padEnd__ = __webpack_require__(11);
448
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__padStart__ = __webpack_require__(12);
449
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__repeat__ = __webpack_require__(13);
450
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__replace__ = __webpack_require__(14);
451
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__sentenceList__ = __webpack_require__(15);
452
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__snakeCase__ = __webpack_require__(16);
453
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__startCase__ = __webpack_require__(17);
454
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__toLower__ = __webpack_require__(18);
455
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__toUpper__ = __webpack_require__(19);
456
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__trim__ = __webpack_require__(20);
457
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__trimEnd__ = __webpack_require__(21);
458
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__trimStart__ = __webpack_require__(22);
459
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__truncate__ = __webpack_require__(23);
460
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__unescape__ = __webpack_require__(24);
461
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__upperCase__ = __webpack_require__(25);
462
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__upperFirst__ = __webpack_require__(26);
463
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__usd__ = __webpack_require__(27);
464
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "camelCase", function() { return __WEBPACK_IMPORTED_MODULE_0__camelCase__["a"]; });
465
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return __WEBPACK_IMPORTED_MODULE_1__capitalize__["a"]; });
466
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "deburr", function() { return __WEBPACK_IMPORTED_MODULE_2__deburr__["a"]; });
467
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "displayNull", function() { return __WEBPACK_IMPORTED_MODULE_3__displayNull__["a"]; });
468
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "escape", function() { return __WEBPACK_IMPORTED_MODULE_4__escape__["a"]; });
469
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "escapeRegExp", function() { return __WEBPACK_IMPORTED_MODULE_5__escapeRegExp__["a"]; });
470
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "kebabCase", function() { return __WEBPACK_IMPORTED_MODULE_6__kebabCase__["a"]; });
471
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "lowerCase", function() { return __WEBPACK_IMPORTED_MODULE_7__lowerCase__["a"]; });
472
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "lowerFirst", function() { return __WEBPACK_IMPORTED_MODULE_8__lowerFirst__["a"]; });
473
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pad", function() { return __WEBPACK_IMPORTED_MODULE_9__pad__["a"]; });
474
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "padEnd", function() { return __WEBPACK_IMPORTED_MODULE_10__padEnd__["a"]; });
475
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "padStart", function() { return __WEBPACK_IMPORTED_MODULE_11__padStart__["a"]; });
476
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "repeat", function() { return __WEBPACK_IMPORTED_MODULE_12__repeat__["a"]; });
477
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "replace", function() { return __WEBPACK_IMPORTED_MODULE_13__replace__["a"]; });
478
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sentenceList", function() { return __WEBPACK_IMPORTED_MODULE_14__sentenceList__["a"]; });
479
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "snakeCase", function() { return __WEBPACK_IMPORTED_MODULE_15__snakeCase__["a"]; });
480
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "startCase", function() { return __WEBPACK_IMPORTED_MODULE_16__startCase__["a"]; });
481
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "toLower", function() { return __WEBPACK_IMPORTED_MODULE_17__toLower__["a"]; });
482
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "toUpper", function() { return __WEBPACK_IMPORTED_MODULE_18__toUpper__["a"]; });
483
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "trim", function() { return __WEBPACK_IMPORTED_MODULE_19__trim__["a"]; });
484
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "trimEnd", function() { return __WEBPACK_IMPORTED_MODULE_20__trimEnd__["a"]; });
485
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "trimStart", function() { return __WEBPACK_IMPORTED_MODULE_21__trimStart__["a"]; });
486
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "truncate", function() { return __WEBPACK_IMPORTED_MODULE_22__truncate__["a"]; });
487
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "unescape", function() { return __WEBPACK_IMPORTED_MODULE_23__unescape__["a"]; });
488
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "upperCase", function() { return __WEBPACK_IMPORTED_MODULE_24__upperCase__["a"]; });
489
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "upperFirst", function() { return __WEBPACK_IMPORTED_MODULE_25__upperFirst__["a"]; });
490
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "usd", function() { return __WEBPACK_IMPORTED_MODULE_26__usd__["a"]; });
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
- /* harmony default export */ __webpack_exports__["default"] = ({
548
- camelCase: __WEBPACK_IMPORTED_MODULE_0__camelCase__["a" /* default */],
549
- capitalize: __WEBPACK_IMPORTED_MODULE_1__capitalize__["a" /* default */],
550
- deburr: __WEBPACK_IMPORTED_MODULE_2__deburr__["a" /* default */],
551
- displayNull: __WEBPACK_IMPORTED_MODULE_3__displayNull__["a" /* default */],
552
- escape: __WEBPACK_IMPORTED_MODULE_4__escape__["a" /* default */],
553
- escapeRegExp: __WEBPACK_IMPORTED_MODULE_5__escapeRegExp__["a" /* default */],
554
- kebabCase: __WEBPACK_IMPORTED_MODULE_6__kebabCase__["a" /* default */],
555
- lowerCase: __WEBPACK_IMPORTED_MODULE_7__lowerCase__["a" /* default */],
556
- lowerFirst: __WEBPACK_IMPORTED_MODULE_8__lowerFirst__["a" /* default */],
557
- pad: __WEBPACK_IMPORTED_MODULE_9__pad__["a" /* default */],
558
- padEnd: __WEBPACK_IMPORTED_MODULE_10__padEnd__["a" /* default */],
559
- padStart: __WEBPACK_IMPORTED_MODULE_11__padStart__["a" /* default */],
560
- repeat: __WEBPACK_IMPORTED_MODULE_12__repeat__["a" /* default */],
561
- replace: __WEBPACK_IMPORTED_MODULE_13__replace__["a" /* default */],
562
- sentenceList: __WEBPACK_IMPORTED_MODULE_14__sentenceList__["a" /* default */],
563
- snakeCase: __WEBPACK_IMPORTED_MODULE_15__snakeCase__["a" /* default */],
564
- startCase: __WEBPACK_IMPORTED_MODULE_16__startCase__["a" /* default */],
565
- toLower: __WEBPACK_IMPORTED_MODULE_17__toLower__["a" /* default */],
566
- toUpper: __WEBPACK_IMPORTED_MODULE_18__toUpper__["a" /* default */],
567
- trim: __WEBPACK_IMPORTED_MODULE_19__trim__["a" /* default */],
568
- trimEnd: __WEBPACK_IMPORTED_MODULE_20__trimEnd__["a" /* default */],
569
- trimStart: __WEBPACK_IMPORTED_MODULE_21__trimStart__["a" /* default */],
570
- truncate: __WEBPACK_IMPORTED_MODULE_22__truncate__["a" /* default */],
571
- unescape: __WEBPACK_IMPORTED_MODULE_23__unescape__["a" /* default */],
572
- upperCase: __WEBPACK_IMPORTED_MODULE_24__upperCase__["a" /* default */],
573
- upperFirst: __WEBPACK_IMPORTED_MODULE_25__upperFirst__["a" /* default */],
574
- usd: __WEBPACK_IMPORTED_MODULE_26__usd__["a" /* default */],
575
- });
576
-
577
-
578
- /***/ })
579
- /******/ ]);
@@ -1 +0,0 @@
1
- var pf=function(e){function t(u){if(r[u])return r[u].exports;var n=r[u]={i:u,l:!1,exports:{}};return e[u].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,u){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:u})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t){e.exports=lodash},function(e,t,r){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.usd=t.upperFirst=t.upperCase=t.unescape=t.truncate=t.trimStart=t.trimEnd=t.trim=t.toUpper=t.toLower=t.startCase=t.snakeCase=t.sentenceList=t.replace=t.repeat=t.padStart=t.padEnd=t.pad=t.lowerFirst=t.lowerCase=t.kebabCase=t.escapeRegExp=t.escape=t.displayNull=t.deburr=t.capitalize=t.camelCase=void 0;var n=r(2);Object.defineProperty(t,"camelCase",{enumerable:!0,get:function(){return u(n).default}});var a=r(3);Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return u(a).default}});var f=r(4);Object.defineProperty(t,"deburr",{enumerable:!0,get:function(){return u(f).default}});var l=r(5);Object.defineProperty(t,"displayNull",{enumerable:!0,get:function(){return u(l).default}});var i=r(6);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return u(i).default}});var o=r(7);Object.defineProperty(t,"escapeRegExp",{enumerable:!0,get:function(){return u(o).default}});var c=r(8);Object.defineProperty(t,"kebabCase",{enumerable:!0,get:function(){return u(c).default}});var d=r(9);Object.defineProperty(t,"lowerCase",{enumerable:!0,get:function(){return u(d).default}});var s=r(10);Object.defineProperty(t,"lowerFirst",{enumerable:!0,get:function(){return u(s).default}});var p=r(11);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return u(p).default}});var b=r(12);Object.defineProperty(t,"padEnd",{enumerable:!0,get:function(){return u(b).default}});var v=r(13);Object.defineProperty(t,"padStart",{enumerable:!0,get:function(){return u(v).default}});var y=r(14);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return u(y).default}});var _=r(15);Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return u(_).default}});var O=r(16);Object.defineProperty(t,"sentenceList",{enumerable:!0,get:function(){return u(O).default}});var j=r(17);Object.defineProperty(t,"snakeCase",{enumerable:!0,get:function(){return u(j).default}});var P=r(18);Object.defineProperty(t,"startCase",{enumerable:!0,get:function(){return u(P).default}});var m=r(19);Object.defineProperty(t,"toLower",{enumerable:!0,get:function(){return u(m).default}});var g=r(20);Object.defineProperty(t,"toUpper",{enumerable:!0,get:function(){return u(g).default}});var M=r(21);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return u(M).default}});var C=r(22);Object.defineProperty(t,"trimEnd",{enumerable:!0,get:function(){return u(C).default}});var w=r(23);Object.defineProperty(t,"trimStart",{enumerable:!0,get:function(){return u(w).default}});var E=r(24);Object.defineProperty(t,"truncate",{enumerable:!0,get:function(){return u(E).default}});var x=r(25);Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return u(x).default}});var F=r(26);Object.defineProperty(t,"upperCase",{enumerable:!0,get:function(){return u(F).default}});var h=r(27);Object.defineProperty(t,"upperFirst",{enumerable:!0,get:function(){return u(h).default}});var k=r(28);Object.defineProperty(t,"usd",{enumerable:!0,get:function(){return u(k).default}});var S=u(n),L=u(a),z=u(f),R=u(l),U=u(i),N=u(o),$=u(c),q=u(d),A=u(s),B=u(p),D=u(b),G=u(v),H=u(y),I=u(_),J=u(O),K=u(j),Q=u(P),T=u(m),V=u(g),W=u(M),X=u(C),Y=u(w),Z=u(E),ee=u(x),te=u(F),re=u(h),ue=u(k);t.default={camelCase:S.default,capitalize:L.default,deburr:z.default,displayNull:R.default,escape:U.default,escapeRegExp:N.default,kebabCase:$.default,lowerCase:q.default,lowerFirst:A.default,pad:B.default,padEnd:D.default,padStart:G.default,repeat:H.default,replace:I.default,sentenceList:J.default,snakeCase:K.default,startCase:Q.default,toLower:T.default,toUpper:V.default,trim:W.default,trimEnd:X.default,trimStart:Y.default,truncate:Z.default,unescape:ee.default,upperCase:te.default,upperFirst:re.default,usd:ue.default}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.camelCase)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.capitalize)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.deburr)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return null===e?t||"null":""===e?t||"null":e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.escape)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.escapeRegExp)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.kebabCase)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.lowerCase)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.lowerFirst)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t,r){return(0,u.pad)(e,t,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t,r){return(0,u.padEnd)(e,t,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t,r){return(0,u.padStart)(e,t,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t){return(0,u.repeat)(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t,r){return(0,u.replace)(e,t,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r="";return 1===e.length?r=t?e[0][t]:e[0]:2===e.length?r=t?e[0][t]+" and "+e[1][t]:e[0]+" and "+e[1]:e.forEach(function(u,n){n===e.length-1&&(r+="and "),r+=t?u[t]:u,2!==e.length&&n<e.length-1&&(r+=", ")}),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.snakeCase)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.startCase)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.toLower)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.toUpper)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t){return(0,u.trim)(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t){return(0,u.trimEnd)(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t){return(0,u.trimStart)(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e,t){return(0,u.truncate)(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.unescape)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.upperCase)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(0);t.default=function(e){return(0,u.upperFirst)(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=parseFloat(e);return"c"===t&&(r/=100),"$"+r.toFixed(2)}}]);
package/index.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./dist/pure-formatters.cjs');