Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@tsconfig/node16
Advanced tools
A base TSConfig for working with Node 16.
Weekly downloads
Package description
The @tsconfig/node16 npm package provides a set of TypeScript configuration presets specifically tailored for Node.js 16. This package helps developers to quickly set up a TypeScript project that is compatible with Node.js 16 features and runtime behavior, ensuring that TypeScript code is compiled with the appropriate settings for this version of Node.js.
Pre-configured TypeScript settings for Node.js 16
This feature allows developers to extend their TypeScript configuration with a preset that is optimized for Node.js 16. By doing so, it automatically configures TypeScript compiler options such as `module`, `target`, and others to values that are compatible with Node.js 16, simplifying project setup.
{
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
}
}
Similar to @tsconfig/node16, this package provides TypeScript configuration presets but for Node.js 14. It helps developers to set up TypeScript projects that are compatible with Node.js 14, ensuring the compiled code works as expected in that environment. The main difference is the target Node.js version, with each package catering to the specific features and runtime behavior of its respective Node.js version.
This package offers TypeScript configuration presets for Node.js 12. Like the other @tsconfig packages, it aims to simplify the TypeScript setup process for projects targeting Node.js 12. The difference lies in the Node.js version compatibility, with each package providing presets tailored to the nuances of the specified Node.js version.
Readme
Add the package to your "devDependencies"
:
npm install --save-dev @tsconfig/node16
yarn add --dev @tsconfig/node16
Add to your tsconfig.json
:
"extends": "@tsconfig/node16/tsconfig.json"
The tsconfig.json
:
{
"$schema": "https://json.schemastore.org/tsconfig",
"_version": "16.1.0",
"compilerOptions": {
"lib": ["es2021"],
"module": "node16",
"target": "es2021",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node16"
}
}
You can find the code here.
FAQs
A base TSConfig for working with Node 16.
The npm package @tsconfig/node16 receives a total of 9,793,641 weekly downloads. As such, @tsconfig/node16 popularity was classified as popular.
We found that @tsconfig/node16 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.