Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

md-stats

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md-stats - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

cli.js

@@ -12,3 +12,2 @@ #!/usr/bin/env node

const { env } = process;
const hasIntl = typeof Intl === "object";
const locale = env.LC_ALL || env.LC_MESSAGES || env.LANG || env.LANGUAGE || "en";

@@ -23,5 +22,9 @@ const isVerbose = !!argv.verbose;

*/
const format = (num) => hasIntl
? num.toLocaleString(locale)
: `${num}`;
const format = (num) => {
try {
return num.toLocaleString(locale);
} catch (error) {
return `${num}`;
}
}

@@ -28,0 +31,0 @@ getMarkdownStats(dir).then(stats => {

{
"name": "md-stats",
"version": "1.0.2",
"version": "1.0.3",
"description": "A tool to report on statistics for Markdown file content within a folder (recursively).",

@@ -5,0 +5,0 @@ "keywords": [

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