🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

typescript-to-json-schema-extra

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-to-json-schema-extra

Some extra features for typescript-to-json-schema

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
25
66.67%
Maintainers
3
Weekly downloads
 
Created
Source

typescript-to-json-schema-extra

Provides some extras for typescript-to-json-schema.

  • Generate schemas for all types: SchemaGenerator.createSchemas(filter: (fileName: string) => boolean): Map<Schema>.
  • Create a program from a list of files: ExtConfig.paths.
  • Provide custom compiler options for a program: createProgram(config: Config, options?: ts.CompilerOptions): ts.Program.
  • Treat line comments // the same as jsDoc comments /** */: ExtConfig.lineComment. Warning: This is not very stable, use on your own risk!
  • Add extra: { filename: string; members?: string[] } property to the schema containing the typescript filename and the member names of enums.

Development

The development is done in the develop branch. Releasing is done by updating the version with npm version patch|minor|major and by rebasing the develop branch onto the master branch. Travis CI will then pick this up and perform the release. To publish to npmjs.com, the environment variable NPM_TOKEN must be set. Do this by executing npm login locally and the take the corresponding value out of ~/.nmprc.

Keywords

ts

FAQs

Package last updated on 13 Mar 2018

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