UNPKG

gitdocs

Version:

Easy to use, SEO-friendly, beautiful documentation that lives in your git repo.

23 lines (17 loc) 290 B
const tmp = require('tmp') const namespaces = { codegen: '@codegen', static: '@static', repos: '@repos', } function tempDir () { tmp.setGracefulCleanup() const dir = tmp.dirSync({ prefix: 'gitdocs-', }) return dir.name } module.exports = { namespaces, tempDir, }