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

gitbook-markdown

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-markdown - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

15

lib/langs.js

@@ -6,18 +6,5 @@ var _ = require("lodash");

var parseLangs = function(content) {
var entries = parseEntries(content);
return _.chain(entries)
.filter(function(entry) {
return Boolean(entry.path);
})
.map(function(entry) {
return {
title: entry.title,
path: entry.path,
lang: entry.path.replace("/", "")
};
})
.value();
return parseEntries(content);
};
module.exports = parseLangs;

2

package.json
{
"name": "gitbook-markdown",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://www.gitbook.com",

@@ -5,0 +5,0 @@ "description": "Parse markdown content for gitbook",

@@ -13,9 +13,7 @@ var fs = require('fs');

assert.equal(LEXED[0].path,'en/');
assert.equal(LEXED[0].lang,'en');
assert.equal(LEXED[0].title,'English');
assert.equal(LEXED[1].path,'fr/');
assert.equal(LEXED[1].lang,'fr');
assert.equal(LEXED[1].title,'French');
});
});
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