Socket
Socket
Sign inDemoInstall

micromark-util-types

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-util-types

micromark utility with a couple of typescript types


Version published
Weekly downloads
7.8M
increased by4.05%
Maintainers
1
Weekly downloads
 
Created

What is micromark-util-types?

The micromark-util-types package provides TypeScript types for micromark, a markdown parser. These types help in defining and working with various constructs and utilities within the micromark ecosystem.

What are micromark-util-types's main functionalities?

Token

Defines a token, which is a fundamental unit in the parsing process. Tokens represent segments of the input text with specific types and positions.

const token: Token = { type: 'text', start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 5, offset: 4 }, content: 'text' };

Point

Defines a point in the source text, which is used to mark positions such as the start and end of tokens.

const point: Point = { line: 1, column: 1, offset: 0 };

CompileContext

Defines the context used during the compilation phase, providing methods and properties to manage the state and process of converting tokens into the final output.

const compileContext: CompileContext = { sliceSerialize: (token) => 'serialized', stack: [], enter: () => {}, exit: () => {} };

Other packages similar to micromark-util-types

Keywords

FAQs

Package last updated on 19 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc