import * as fs from 'fs' ; import * as yaml from 'js-yaml' ; module example method param { String } filename return { String } function get ( filename ) { const content = fs . readFileSync ( filename , 'utf8' ) ; return content ; } example method param { String } filename return { String } function getYaml ( filename ) { const content = fs . readFileSync ( filename , 'utf8' ) ; return yaml . safeLoad ( content ) ; } example method param { String } filename param { * } options return { String } function getJson ( filename , options ) { const content = fs . readFileSync ( filename , options ) ; return JSON . parse ( content . toString ( ) ) ; } export default { get , getYaml , getJson , } ;