You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/parse.js
+7-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
"use strict";
2
2
module.exports=parse;
3
3
4
+
parse.keepCase=false;
5
+
4
6
vartokenize=require("./tokenize"),
5
7
Root=require("./root"),
6
8
Type=require("./type"),
@@ -61,14 +63,16 @@ function camelCase(str) {
61
63
* @param {ParseOptions} [options] Parse options
62
64
* @returns {ParserResult} Parser result
63
65
* @property {string} filename=null Currently processing file name for error reporting, if known
66
+
* @property {boolean} keepCase=false When set to `true`, always keeps field casing instead of converting to camel case when no {@link ParseOptions} are specified
0 commit comments