Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

micromark-util-types

Package Overview
Dependencies
Maintainers
1
Versions
10
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

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.9M
increased by5.7%
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 22 Jun 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