New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

markbackjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markbackjs

MarkBack tooling for JavaScript and TypeScript

latest
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

markbackjs

JavaScript/TypeScript linter for the MarkBack format.

Install

npm install markbackjs

Usage

const { lintString, formatDiagnostics } = require("markbackjs");

const text = "Content here.\n<<< positive\n";
const result = lintString(text, { checkSources: false, checkCanonical: false });

if (result.hasErrors) {
  console.log(formatDiagnostics(result.diagnostics));
}

Supported Headers

  • @uri - Unique identifier for the record
  • @source - Reference to external content file
  • @prior - Reference to a file that precedes the source (e.g., a prompt that generated it)

API

  • lintString(text, options)
  • lintFile(path, options)
  • lintFiles(paths, options)
  • formatDiagnostics(diagnostics, format)
  • summarizeResults(results)

Options:

  • sourceFile: string
  • checkSources: boolean (default true)
  • checkCanonical: boolean (default true)

Build

npm run build

Keywords

markback

FAQs

Package last updated on 06 Feb 2026

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