@trenskow/caseit 1.1.4 → 1.2.0

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.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7,7 +7,9 @@ const separators = {
7
7
  'domain': '.',
8
8
  'kebab': '-',
9
9
  'title': ' ',
10
- 'http': '-'
10
+ 'http': '-',
11
+ 'lower': '',
12
+ 'upper': ''
11
13
  };
12
14
 
13
15
  const supported = Object.keys(separators).sort();
@@ -35,8 +37,12 @@ module.exports = exports = function(input, type = 'camel') {
35
37
  // fallthrough
36
38
  case 'kebab':
37
39
  // fallthrough
40
+ case 'lower':
41
+ // fallthrough
38
42
  case 'snake':
39
43
  return key.toLowerCase();
44
+ case 'upper':
45
+ return key.toUpperCase();
40
46
  }
41
47
  });
42
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/caseit",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "Small library for converting between different casing.",
5
5
  "main": "index.js",
6
6
  "scripts": {