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

raml2md

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raml2md - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

5

changelog.md

@@ -0,1 +1,6 @@

2.4.0 - December 9, 2015
- Update third party dependencies
- Use AirBnb ESLint package
- Fixed linter errors
2.3.0 - July 16, 2015

@@ -2,0 +7,0 @@ - Update third party dependencies

2

examples/script.js

@@ -0,1 +1,3 @@

#!/usr/bin/env node
'use strict';

@@ -2,0 +4,0 @@

21

index.js

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

var path = require('path');
var raml2obj = require('raml2obj');

@@ -12,7 +11,2 @@ var pjson = require('./package.json');

exports = module.exports = {
getDefaultConfig: getDefaultConfig,
render: render
};
/*

@@ -25,11 +19,11 @@ The config object can contain the following keys and values:

function render(source, config) {
var env = nunjucks.configure(config.templatesPath, { autoescape: false });
config = config || {};
config.raml2MdVersion = pjson.version;
var env = nunjucks.configure(config.templatesPath, {watch: false});
return raml2obj.parse(source).then(function(ramlObj) {
return raml2obj.parse(source).then(function (ramlObj) {
ramlObj.config = config;
return Q.fcall(function() {
return Q.fcall(function () {
var result = env.render(config.template, ramlObj);

@@ -57,3 +51,3 @@ if (config.processOutput) {

templatesPath: templatesPath,
processOutput: function(data) {
processOutput: function (data) {
return data.replace(/\n{3,}/g, '\n\n');

@@ -68,1 +62,6 @@ }

}
module.exports = {
getDefaultConfig: getDefaultConfig,
render: render
};
{
"name": "raml2md",
"description": "RAML to Markdown documentation generator",
"version": "2.3.0",
"version": "2.4.0",
"author": {

@@ -10,7 +10,7 @@ "name": "Kevin Renskers",

"bugs": {
"url": "https://github.com/kevinrenskers/raml2md/issues"
"url": "https://github.com/raml2html/raml2md/issues"
},
"dependencies": {
"commander": "2.8.x",
"nunjucks": "1.3.x",
"commander": "2.9.x",
"nunjucks": "2.2.x",
"raml2obj": "2.2.x",

@@ -20,5 +20,6 @@ "q": "1.4.x"

"devDependencies": {
"eslint": "0.24.x"
"eslint": "1.10.x",
"eslint-config-airbnb": "^2.0.0"
},
"homepage": "https://github.com/kevinrenskers/raml2md",
"homepage": "https://github.com/raml2html/raml2md",
"keywords": [

@@ -31,7 +32,7 @@ "RAML"

"type": "git",
"url": "git://github.com/kevinrenskers/raml2md.git"
"url": "git://github.com/raml2html/raml2md.git"
},
"preferGlobal": "true",
"scripts": {
"lint": "eslint ./"
"lint": "eslint index.js"
},

@@ -38,0 +39,0 @@ "bin": {

@@ -7,3 +7,3 @@ # RAML to Markdown

A simple RAML to Markdown documentation generator, written for Node.js.
Check [raml2html](https://github.com/kevinrenskers/raml2html) for a RAML to HTML generator.
Check [raml2html](https://github.com/raml2html/raml2html) for a RAML to HTML generator.

@@ -76,3 +76,3 @@

A big thank you goes out to everyone who helped with the project, the [contributors](https://github.com/kevinrenskers/raml2md/graphs/contributors)
A big thank you goes out to everyone who helped with the project, the [contributors](https://github.com/raml2html/raml2md/graphs/contributors)
and everyone who took the time to report issues and give feedback.

@@ -79,0 +79,0 @@

Sorry, the diff of this file is not supported yet

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