UNPKG
@nodesecure/js-x-ray
Version:
latest (16.0.0)
16.0.0
15.2.0
15.1.0
15.0.0
14.3.0
14.2.0
14.1.0
14.0.1
14.0.0
13.0.0
12.0.0
11.7.0
11.5.0
11.4.0
11.3.0
11.2.0
11.1.0
11.0.1
11.0.0
10.2.1
10.2.0
10.1.0
10.0.0
9.2.0
9.1.0
9.0.0
8.2.0
8.1.1
8.1.0
8.0.0
7.3.0
7.2.0
7.1.1
7.1.0
7.0.0
6.3.0
6.2.1
6.2.0
6.1.1
6.1.0
6.0.1
6.0.0
5.1.0
5.0.1
5.0.0
4.5.0
4.4.0
4.3.0
4.2.1
4.2.0
4.1.2
4.1.1
4.1.0
4.0.1
4.0.0
JavaScript AST XRay analysis
github.com/NodeSecure/js-x-ray
NodeSecure/js-x-ray
@nodesecure/js-x-ray
/
dist
/
estree
/
literal.js
7 lines
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
export
function
toValue
(
strOrLiteral
) {
return
typeof
strOrLiteral ===
"string"
? strOrLiteral :
String
(strOrLiteral.
value
); }
export
function
toRaw
(
strOrLiteral
) {
return
typeof
strOrLiteral ===
"string"
? strOrLiteral : strOrLiteral.
raw
; }
//# sourceMappingURL=literal.js.map