### Installing @n8n/tournament with pnpm Source: https://github.com/n8n-io/tournament/blob/main/README.md This command installs the `@n8n/tournament` package using pnpm, a fast, disk space efficient package manager. It's a prerequisite for using the library in your project. ```Shell pnpm add @n8n/tournament ``` -------------------------------- ### Using @n8n/tournament for Template Expression Evaluation in TypeScript Source: https://github.com/n8n-io/tournament/blob/main/README.md This TypeScript example demonstrates how to initialize and use the `Tournament` class to execute various template expressions. It covers simple arithmetic, data context interpolation, template literal evaluation, and custom error handling during expression execution. ```TypeScript import { Tournament } from '@n8n/tournament'; const tournament = new Tournament(); // simple expressions tournament.execute('{{ 1 + 2 }}', {}); // 3 // with data context tournament.execute('{{ user.name }}', { user: { name: 'John' } }); // 'John' // template strings tournament.execute('{{ `Hello ${user.name}!` }}', { user: { name: 'John' } }); // 'Hello John!' // error handling const tournament = new Tournament((error) => { console.error('Expression error:', error); }); ``` -------------------------------- ### Releasing @n8n/tournament to npm Source: https://github.com/n8n-io/tournament/blob/main/README.md These shell commands are used to prepare and publish a new version of the `@n8n/tournament` package to the npm registry. The `npm version` command updates the package version, and `npm publish` uploads the package, requiring appropriate npm organization permissions. ```Shell npm version {version} npm publish ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.