Socket
Book a DemoInstallSign in
Socket

bikeshed-to-ts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bikeshed-to-ts

Extract a TypeScript declaration file from a bikeshed document.

1.2.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

bikeshed-to-ts

Creates a type definition file by parsing a lib specification in bikeshed format. Includes TypeDoc comments where available.

Getting started

Add the module to your project:

$ yarn add bikeshed-to-ts --dev

Run from the command line:

$ yarn bikeshed-to-ts --in <bikeshed_file> -- out <typedef_file>

Run from a script in your package.json:

{
  ...
  "scripts": {
    "peer": "bikeshed-to-ts --in <bikeshed_file> -- out <typedef_file>"
  },
  ...
}

Usage and available options can be found at:

$ yarn bikeshed-to-ts --help

It can be installed globally:

$ yarn global add bikeshed-to-ts

Usage

  Usage: bikeshed-to-ts --in <file-path> --out <file-path> [flags]

  Options:
    --in, -i		 Path to a bikeshed file to parse.
    --out, -o		 Path to a TypeScript definitions file to write.
    --forceGlobal, -f	 When present, all declarations will be added to the global context
    --nominal, -n	 When present, types declarations will be made nominal when possible
    --version, -v	 Print version and exit

Keywords

typescript

FAQs

Package last updated on 11 Apr 2021

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.