0.3.0 • Published 4 years ago

@selective/marker v0.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Selective Marker

NPM Version Linux Build Status Windows Build status

Parse selective rule comments from HTML, compatible unified-message-control.

Installation

# npm
npm install @selective/marker

# yarn
yarn add @selective/marker

Usage

const marker = require("@selective/marker");

const hastNode = {
  type: "comment",
  value: "selective ignore test",
};

const result = marker(hastNode);

console.log(result);
// {
//   name: "selective",
//   attributes: "ignore test",
//   parameters: {
//     ignore: true,
//     test: true
//   },
//   {
//     type: "comment",
//     value: "selective ignore test"
//   }
// }

References