1717* [ Install] ( #install )
1818* [ Use] ( #use )
1919* [ API] ( #api )
20- * [ ` cont(code) ` ] ( #contcode )
21- * [ ` name(name) ` ] ( #namename )
20+ * [ ` cont(code[, options] ) ` ] ( #contcode-options )
21+ * [ ` name(name[, options] ) ` ] ( #namename-options )
2222 * [ ` start(code) ` ] ( #startcode )
23+ * [ Options] ( #options )
2324* [ Types] ( #types )
2425* [ Compatibility] ( #compatibility )
2526* [ Related] ( #related )
@@ -78,27 +79,31 @@ This package exports the identifiers [`cont`][cont], [`name`][name], and
7879[ ` start ` ] [ start ] .
7980There is no default export.
8081
81- ### ` cont(code) `
82+ ### ` cont(code[, options] ) `
8283
8384Checks if the given code point can continue an identifier.
8485
8586###### Parameters
8687
8788* ` code ` (` number ` )
8889 — code point to check
90+ * ` options ` ([ ` Options ` ] [ api-options ] , optional)
91+ — configuration
8992
9093###### Returns
9194
9295Whether ` code ` can continue an identifier (` boolean ` ).
9396
94- ### ` name(name) `
97+ ### ` name(name[, options] ) `
9598
9699Checks if the given value is a valid identifier name.
97100
98101###### Parameters
99102
100103* ` name ` (` string ` )
101104 — identifier to check
105+ * ` options ` ([ ` Options ` ] [ api-options ] , optional)
106+ — configuration
102107
103108###### Returns
104109
@@ -117,10 +122,19 @@ Checks if the given code point can start an identifier.
117122
118123Whether ` code ` can start an identifier (` boolean ` ).
119124
125+ ### Options
126+
127+ Configuration (TypeScript type).
128+
129+ ###### Fields
130+
131+ * ` jsx ` (` boolean ` , default: ` false ` )
132+ — support JSX identifiers.
133+
120134## Types
121135
122136This package is fully typed with [ TypeScript] [ ] .
123- It exports no additional types .
137+ It exports the additional type [ ` Options ` ] [ api-options ] .
124138
125139## Compatibility
126140
@@ -198,8 +212,10 @@ abide by its terms.
198212
199213[ estree ] : https://github.com/estree/estree
200214
201- [ cont ] : #contcode
215+ [ cont ] : #contcode-options
202216
203- [ name ] : #namename
217+ [ name ] : #namename-options
204218
205219[ start ] : #startcode
220+
221+ [ api-options ] : #options
0 commit comments