Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101823659
index.js.map
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 14, 02:21
Size
1 KB
Mime Type
text/x-Algol68
Expires
Sun, Feb 16, 02:21 (2 d)
Engine
blob
Format
Raw Data
Handle
24237960
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
index.js.map
View Options
{
"version"
:
3
,
"file"
:
"index.js"
,
"sourceRoot"
:
""
,
"sources"
:
[
"../src/index.ts"
],
"names"
:
[],
"mappings"
:
";;;;AAAA,mCAA0C;AAI1C,SAAgB,mBAAmB,CAAC,KAAa,EAAE,KAAa;IAC9D,IAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAClC,IAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACjD,IAAI,KAAK,GAAG,CAAC,IAAI,SAAS,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,EAAE;QACrD,OAAO,MAAI,SAAS,GAAG,UAAY,CAAC;KACrC;IACD,OAAO,KAAG,SAAS,CAAC,WAAW,EAAE,GAAG,UAAY,CAAC;AACnD,CAAC;AAPD,kDAOC;AAED,SAAgB,wBAAwB,CAAC,KAAa;IACpD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AACtE,CAAC;AAFD,4DAEC;AAED,SAAgB,UAAU,CAAC,KAAa,EAAE,OAAqB;IAArB,wBAAA,EAAA,YAAqB;IAC7D,OAAO,gBAAM,CAAC,KAAK,qBACjB,SAAS,EAAE,EAAE,EACb,SAAS,EAAE,mBAAmB,IAC3B,OAAO,EACV,CAAC;AACL,CAAC;AAND,gCAMC"
,
"sourcesContent"
:
[
"import { noCase, Options } from
\"
no-case
\"
;
\n\n
export { Options };
\n\n
export function pascalCaseTransform(input: string, index: number) {
\n
const firstChar = input.charAt(0);
\n
const lowerChars = input.substr(1).toLowerCase();
\n
if (index > 0 && firstChar >=
\"
0
\"
&& firstChar <=
\"
9
\"
) {
\n
return `_${firstChar}${lowerChars}`;
\n
}
\n
return `${firstChar.toUpperCase()}${lowerChars}`;
\n
}
\n\n
export function pascalCaseTransformMerge(input: string) {
\n
return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();
\n
}
\n\n
export function pascalCase(input: string, options: Options = {}) {
\n
return noCase(input, {
\n
delimiter:
\"\"
,
\n
transform: pascalCaseTransform,
\n
...options,
\n
});
\n
}
\n
"
]
}
Event Timeline
Log In to Comment