New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@httpie/tsconfig

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@httpie/tsconfig

Shareable TypeScript config

latest
npmnpm
Version
3.1.0
Version published
Maintainers
1
Created
Source


Httpie shareable TypeScript Config

Shared TypeScript config for Httpie projects


Installation · Usage



Latest Version Monthly downloads

Follow @eldorplus and @httpiejs for updates!

Installation

npm i -D @httpie/tsconfig

Targets

Major ReleaseNode.js version
3.x14.x
2.x12.x
1.x8.x

Usage

Create a tsconfig.json file in your project and extends the @httpie/tsconfig TypeScript config:

Basic Usage

When installed, configure your tsconfig.json like this:

{
  "extends": "@httpie/tsconfig",
  "compilerOptions": {
    "outDir": "dist"
  }
}

Refined Configuration

You can refine your tsconfig.json to your needs. Let’s say you want to target Node.js v14 instead of v12 (which is the default). Change your compilerOptions to this:

{
  "extends": "@httpie/tsconfig",
  "display": "Node 14",

  "compilerOptions": {
    "outDir": "dist",
    "lib": ["es2020"],
    "target": "es2020",
  }
}

Customizing your compilerOptions when extending the @httpie/tsconfig package only overrides the listed properties. Every other option defined in the base configuration will be inherited.

Contributing

  • Create a fork
  • Create your feature branch: git checkout -b my-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request 🚀

License

MIT © Httpie

httpiejs.com  ·  GitLab @httpie  ·  Twitter @httpiejs

Keywords

tsconfig

FAQs

Package last updated on 22 Sep 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