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

how-to-markdown

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

how-to-markdown - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

test.md

2

package.json
{
"name": "how-to-markdown",
"version": "1.1.1",
"version": "1.1.2",
"description": "Learn you how to start using Markdown",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -6,8 +6,8 @@ require('colors');

// Compare solution and attempt results
const parts = diff.diffWords(attempt, solution);
const parts = diff.diffWordsWithSpace(attempt, solution);
// return diff
return parts.map( part =>
part.added ? part.value['red'] :
part.removed ? part.value['green'] : part.value
part.added ? part.value['red']['inverse'] :
part.removed ? part.value['green']['inverse'] : part.value
).join('');
}
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