Socket
Book a DemoInstallSign in
Socket

@davidenke/mkdocs-ts

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@davidenke/mkdocs-ts

MkDocs to Typescript converter

0.1.20
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

MkDocs to Typescript Converter

This has been thrown together in a sleepless night 🌙.

After digging into the georgeous Scriptable app I wanted to improve the developer experience by providing types for the Scriptable API. So all efforts have been a bit biased to my needs to parse the provided documentation.

Improvements

Some missing things that would be nice once another sleepless night comes around:

  • some unit tests
  • using e.g. ts-morph to build the AST
  • running it against some other generated docs
  • typings for the mkdocs json format (is there at least some schema out there?)

Installation

npm i -D @davidenke/mkdocs-ts

or

npm install --save-dev @davidenke/mkdocs-ts

or

pnpm install --dev @davidenke/mkdocs-ts

or

yarn add --dev @davidenke/mkdocs-ts

Usage

mkdocs-ts <input: file path or URL> <output: path to target file>

npm run mkdocs-ts ./example.json example.d.ts

or

npm run mkdocs-ts https://some.remote/example.json example.d.ts

FAQs

Package last updated on 01 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.