node-flat-raml
Flatten a multi-file RAML document into a single RAML file
Flattening a RAML document into a single file
srcFile = 'spec.raml'dstFile = 'flat.raml'flattener = require 'flat-raml' flattenerflatten srcFile dstFile then consolelogoutFile"written" catch "error flattening RAML doc:"error"\nstack:\n"errorstack
Parsing a RAML document into a serialized string
srcFile = 'spec.raml'flattener = require 'flat-raml' flattenerasString srcFile then consolelogsrcFile"read. Serialized content:\n"serialized catch "error reading RAML doc:"error"\nstack:\n"errorstack