Socket
Socket
Sign inDemoInstall

@tsconfig/node14

Package Overview
Dependencies
0
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tsconfig/node14

A base TSConfig for working with Node 14.


Version published
Weekly downloads
16M
increased by1.45%
Maintainers
2
Install size
2.30 kB
Created
Weekly downloads
 

Package description

What is @tsconfig/node14?

The @tsconfig/node14 npm package provides a set of TypeScript configuration presets specifically tailored for Node.js 14. This package helps developers to quickly set up a TypeScript project that is compatible with Node.js 14 features and runtime behavior. It includes configurations for compiler options that are optimized for Node.js 14, ensuring that TypeScript code can leverage the latest ECMAScript features supported by this version of Node.js, while also maintaining compatibility and performance.

What are @tsconfig/node14's main functionalities?

Pre-configured TypeScript settings for Node.js 14

This feature allows developers to quickly bootstrap a TypeScript project with settings optimized for Node.js 14. By extending the base configuration provided by @tsconfig/node14, developers can ensure their project is using the recommended TypeScript compiler options for Node.js 14 environments. The code sample shows how to extend the @tsconfig/node14 configuration in a project's tsconfig.json file.

{
  "extends": "@tsconfig/node14/tsconfig.json",
  "compilerOptions": {
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "include": ["src/**/*"]
}

Other packages similar to @tsconfig/node14

Readme

Source

A base TSConfig for working with Node 14.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/node14
yarn add --dev @tsconfig/node14

Add to your tsconfig.json:

"extends": "@tsconfig/node14/tsconfig.json"

The tsconfig.json:

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "_version": "14.1.0",

  "compilerOptions": {
    "lib": ["es2020"],
    "module": "node16",
    "target": "es2020",

    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "moduleResolution": "node16"
  }
}

You can find the code here.

Keywords

FAQs

Last updated on 27 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc