Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@tsconfig/node14
Advanced tools
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.
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/**/*"]
}
Similar to @tsconfig/node14, this package provides TypeScript configuration presets but for Node.js 12. It helps developers set up TypeScript projects that are compatible with the features and runtime behavior of Node.js 12. The main difference lies in the specific optimizations and settings tailored to the different Node.js versions.
This package is a counterpart to @tsconfig/node14, offering TypeScript configuration presets for Node.js 16. It is designed for developers working with the newer version of Node.js, providing optimizations and settings that leverage the features available in Node.js 16. It serves a similar purpose but is updated to accommodate the advancements in Node.js 16.
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.
FAQs
A base TSConfig for working with Node 14.
The npm package @tsconfig/node14 receives a total of 15,543,874 weekly downloads. As such, @tsconfig/node14 popularity was classified as popular.
We found that @tsconfig/node14 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.