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

@textlint/ast-node-types

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/ast-node-types

textlint AST node type definition.

  • 13.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@textlint/ast-node-types

The definition for textlint AST Node types.

This module for parse plugin.

For more details, see TxtNode document.

Installation

npm install @textlint/ast-node-types

Usage

import { ASTNodeTypes } from "@textlint/ast-node-types";
console.log(ASTNodeTypes.Document); // => string

Type interface for TxtNode

This library include type interface of TxtNode. TypeScript user can use it as type of TxtNode.

// type interface
import { TxtNode } from "@textlint/ast-node-types";

For parser creator

Please use it for creating your textlint-plugin parser.

Use it by

  • textlint internal
  • @textlint/text-to-ast
  • @textlint/markdown-to-ast

Versioning

  • major: Breaking Change
  • minor: Adding new type
  • patch: Fixing issues

Tests

npm test

Contributing

If you want to new type for AST, Please file issue :)

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Keywords

FAQs

Package last updated on 01 Feb 2023

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