GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - flex-development/mark-parser: finite state machine tokenizer

BranchesTags
Open more actions menu

Latest commit

 

History

448 Commits
448 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.husky
.husky
 
 
.vscode
.vscode
 
 
.yarn/releases
.yarn/releases
 
 
__fixtures__
__fixtures__
 
 
__tests__
__tests__
 
 
dprint
dprint
 
 
scripts
scripts
 
 
src
src
 
 
typings
typings
 
 
.attw.json
.attw.json
 
 
.codecov.yml
.codecov.yml
 
 
.commitlintrc.ts
.commitlintrc.ts
 
 
.cspell.json
.cspell.json
 
 
.dictionary.txt
.dictionary.txt
 
 
.dprint.jsonc
.dprint.jsonc
 
 
.editorconfig
.editorconfig
 
 
.env.vars
.env.vars
 
 
.env.zsh
.env.zsh
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.remarkignore
.remarkignore
 
 
.yarnrc.yml
.yarnrc.yml
 
 
Brewfile
Brewfile
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
grease.config.json
grease.config.json
 
 
package.json
package.json
 
 
rollup.config.mts
rollup.config.mts
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.test.json
tsconfig.test.json
 
 
tsconfig.typecheck.json
tsconfig.typecheck.json
 
 
vitest-env.d.mts
vitest-env.d.mts
 
 
vitest.config.mts
vitest.config.mts
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

mark-parser

github release npm npm downloads install size minified bundle size tree shaking suppport codecov module type: esm license conventional commits typescript vitest yarn

finite state machine tokenizer

Contents

  • What is this?
  • When should I use this?
  • Install
  • Use
  • API
  • Types
  • Contribute

What is this?

This package is a tokenization utility. The underlying tokenizer is implemented as a state machine that produces tokens with positional information, as well as any other fields attached when the token was opened. Tokens are turned into events, with the tokenizer calling any defined resolvers in the process.

When should I use this?

This package can be used to tokenize a file, Uint8Array, string, or a list containing these values, like command-line arguments. Developers familiar with micromark will find that tokenizers and constructs (objects used to define how to parse text) in this package work similarly.

Install

This package is ESM only.

In Node.js with yarn:

yarn add @flex-development/mark-parser
See Git - Protocols | Yarn  for details regarding installing from Git.

In Deno with esm.sh:

import { tokenize } from 'https://esm.sh/@flex-development/mark-parser'

In browsers with esm.sh:

<script type="module">
  import { tokenize } from 'https://esm.sh/@flex-development/mark-parser'
</script>

Use

TODO: use

API

TODO: api

Please refer to the source code for documentation.

Types

This package is fully typed with TypeScript.

Contribute

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.

About

finite state machine tokenizer

github.com/flex-development/mark-parser

Topics

fsmparsestatesyntaxtokenize

Resources

Readme
BSD-3-Clause license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.