deno.land / x / shacl_to_type@v0.0.9 / src / shaclToType.ts

shaclToType.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
import { Store } from './deps.ts'import { Options } from './types.ts'import { template } from './core/template.ts'import { getMetas } from './helpers/getMetas.ts'
export const shaclToType = async (shaclStore: Store, options: Options = {}): Promise<string> => { const { meta, otherMetas } = await getMetas(shaclStore, options) return template(meta) + (Object.keys(otherMetas).length ? '\n\n' + Object.values(otherMetas).map(otherMeta => template(otherMeta)).join('\n\n') : '')}
shacl_to_type

Version Info

Tagged at
a year ago