Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@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",
"display": "Node 14",
"compilerOptions": {
"lib": ["es2020"],
"module": "commonjs",
"target": "es2020",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}
You can find the code here.
FAQs
A base TSConfig for working with Node 14.
The npm package @tsconfig/node14 receives a total of 14,685,675 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.