New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remark-clang-format

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-clang-format - npm Package Compare versions

Comparing version 2.2.0 to 2.5.0

10

index.js
'use strict';
import { visit } from 'unist-util-visit';
import { spawnSync as spawnSync } from 'child_process';
var visit = require("unist-util-visit");
// var fs = require("fs");
var spawnSync = require("child_process").spawnSync;

@@ -15,3 +16,3 @@ function visitor(node) {

(!node.meta || !node.meta.includes('nolint')) &&
(node.value && node.value.includes('--8<--'))
(node.value && (!node.value.includes('--8<--')))
) {

@@ -24,3 +25,4 @@ const child = spawnSync('clang-format', { input: node.value });

export default function attacher() {
module.exports = function attacher() {
return function transformer(tree) {

@@ -27,0 +29,0 @@ visit(tree, visitor);

{
"name": "remark-clang-format",
"version": "2.2.0",
"version": "2.5.0",
"description": "run clang-format for code in markdown",

@@ -40,4 +40,3 @@ "main": "index.js",

"zx": "^2.0.0"
},
"type": "module"
}
}
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