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
Is your feature request related to a problem? Please describe.
front_matters any.ts file does not export any() but extract(). Also, json.ts, toml.ts and yaml.ts all export a function called extract(). mod.ts on the other hand doesn't re-export any of these.
Describe the solution you'd like
I propose to do the following changes to have them behave more like other std implementations:
rename any.ts to extract.ts
rename json.ts to extract_json.ts and extract() to extractJson()
rename toml.ts to extract_toml.ts and extract() to extractToml()
rename yaml.ts to extract_yaml.ts and extract() to extractYaml()
Describe alternatives you've considered
Leave as is.
The text was updated successfully, but these errors were encountered:
I've thought about this further, and parse() might be as equally misleading as extract(), as the function extracts and then parses the front matter metadata. So perhaps the function names should be something like extractAndParseJson(), etc. I'm happy to hear other opinions.
Is your feature request related to a problem? Please describe.
front_matters
any.ts
file does not exportany()
butextract()
. Also,json.ts
,toml.ts
andyaml.ts
all export a function calledextract()
.mod.ts
on the other hand doesn't re-export any of these.Describe the solution you'd like
I propose to do the following changes to have them behave more like other std implementations:
any.ts
toextract.ts
json.ts
toextract_json.ts
andextract()
toextractJson()
toml.ts
toextract_toml.ts
andextract()
toextractToml()
yaml.ts
toextract_yaml.ts
andextract()
toextractYaml()
Describe alternatives you've considered
Leave as is.
The text was updated successfully, but these errors were encountered: