docmark extension to support jsonc comment syntax.
- What is this?
- When should I use this?
- Install
- Use
- API
- Types
Options- Module Augmentations
- Project
TODO: what is this?
TODO: when should i use this?
This package is ESM only.
In Node.js with yarn:
yarn add @flex-development/docmark-extension-jsoncSee Git - Protocols | Yarn for details regarding installing from Git.
In Deno with esm.sh:
import { jsonComments } from 'https://esm.sh/@flex-development/docmark-extension-jsonc'In browsers with esm.sh:
<script type="module">
import { jsonComments } from 'https://esm.sh/@flex-development/docmark-extension-jsonc'
</script>TODO: use
This package exports the identifiers jsonComments, jsonBlockComment,
and jsonLineComment.
The default export is jsonComments.
TODO: jsonComments
TODO: jsonBlockComment
TODO: jsonLineComment
This package is fully typed with TypeScript.
It exports additional types.
comments(boolean|null|undefined, optional) — whether comments are allowed- default:
true
- default:
docs(boolean|null|undefined, optional) — whether docblocks are supported
import type {} from '@flex-development/docmark-extension-jsonc/parse-context'For more info, see ParseContext from @flex-development/docmark-util-types.
New and mutated properties added by this package are documented below.
skipComment(boolean|undefined, optional) — whether a comment is not allowed at the current position
import type {} from '@flex-development/docmark-extension-jsonc/settings'For more info, see Settings from @flex-development/docmark-util-types.
New and mutated properties added by this package are documented below.
json(Options|null|undefined, optional) — json comment parsing options.
when buildingdocmarkextensions, developers should extendOptionsand re-augmentSettings
docmark-extension-jsonc adheres to semver.
See CONTRIBUTING.md.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
Small primitives power larger systems.
Support long-term stability by sponsoring Flex Development.