@selective/marker

0.3.0 • Public • Published

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

Package Sidebar

Install

npm i @selective/marker

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

4.49 kB

Total Files

5

Last publish

Collaborators

  • christianmurphy