
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
dtsgenerator-fork
Advanced tools
TypeScript d.ts file generator from JSON Schema file or Swagger spec file.
npm install -g dtsgenerator
$ dtsgen --help
Usage: dtsgen [options] <file ... | file patterns using node-glob>
Options:
-V, --version output the version number
--url <url> input json schema from the url.
--stdin read stdin with other files or urls.
-o, --out <file> output d.ts filename.
-p, --prefix <type prefix> set the prefix of interface name. default is nothing.
-H, --header <type header string> set the string of type header.
-t, --target [version] set target TypeScript version. select from `v2` or `v1`. default is `v2`.
-h, --help output usage information
Examples:
$ dtsgen --help
$ dtsgen --out types.d.ts schema/**/*.schema.json
$ cat schema1.json | dtsgen --target v1
$ dtsgen -o swaggerSchema.d.ts --url https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v2.0/schema.json
$ dtsgen -o petstore.d.ts --url https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/yaml/petstore.yaml
Output debug message by debug library.
$ DEBUG=dtsgen dtsgen schema/news.json
allOf
property of #226. Thank you @dawidgarus @philliphoff :+1:dtsgenerator
dtsgenerator
is licensed under the MIT license.
Copyright © 2016, Hiroki Horiuchi
v0.9.7 (2017-12-12)
FAQs
TypeScript d.ts file generator for JSON Schema file
The npm package dtsgenerator-fork receives a total of 1 weekly downloads. As such, dtsgenerator-fork popularity was classified as not popular.
We found that dtsgenerator-fork demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.