import type { Observable } from 'rxjs' ; import fetchText from './rx-fetch-text' ; param fileUrl export default function getGithubRawContent ( fileUrl ) { const rawFileUrl = fileUrl . replace ( /^https:\/\/github.com/ , 'https://raw.githubusercontent.com' ) . replace ( 'blob/HEAD' , 'master' ) ; return fetchText ( rawFileUrl ) ; }