mark utility with symbols.
This package exposes constants used throughout the mark ecosystem.
This package is useful when creating your own your own mark extensions and utilities.
This package is ESM only.
In Node.js with yarn:
yarn add @flex-development/mark-util-symbolSee Git - Protocols | Yarn for details regarding installing from Git.
In Deno with esm.sh:
import { chars, codes } from 'https://esm.sh/@flex-development/mark-util-symbol'In browsers with esm.sh:
<script type="module">
import { chars, codes } from 'https://esm.sh/@flex-development/mark-util-symbol'
</script>import { chars, codes, constants, ev } from '@flex-development/mark-util-symbol'
console.log(chars.at) // '@'
console.log(codes.at) // 64
console.log(constants.tabSize) // 2
console.log(ev.enter) // 'enter'This package exports the identifiers chars, codes, constants, and ev.
There is no default export.
Each identifier is an object mapping strings to values.
See the code for the exposed data.
This package is fully typed with TypeScript. It exports no additional types.
mark-util-symbol 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.
@flex-development/mark— the specification@flex-development/mark-compiler— finite state machine event compiler@flex-development/mark-parser— finite state machine parser