Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
import { HoppCollection } from "@hoppscotch/data"
import { stripRefIdReplacer } from "."
import { stripCollectionTreeForStore } from "~/helpers/clientLocalVariables"
export const myCollectionsExporter = (myCollections: HoppCollection[]) => {
const stripped = myCollections.map(stripCollectionTreeForStore)
return JSON.stringify(stripped, stripRefIdReplacer, 2)
}