### Install Dependencies Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/AUTOVERSIONING.md Installs project dependencies using npm. This is typically the first step in setting up the project. ```bash npm install ``` -------------------------------- ### Install p-try using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/p-try/readme.md This command installs the p-try package using npm, making it available for use in your Node.js project. ```bash $ npm install p-try ``` -------------------------------- ### Workflow Commit Examples Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/AUTOVERSIONING.md Illustrates the commit messages used within the feature and bug fix workflows, emphasizing the conventional commit format. ```bash git commit -m "feat: add new feature" git commit -m "fix: resolve issue description" ``` -------------------------------- ### Get global directories using global-dirs Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/global-dirs/readme.md Demonstrates how to use the global-dirs module in Node.js to access the installation paths for npm and yarn. It shows how to get the prefix, packages, and binaries directories for both package managers. ```javascript const globalDirs = require('global-dirs'); console.log(globalDirs.npm.prefix); //=> '/usr/local' console.log(globalDirs.npm.packages); //=> '/usr/local/lib/node_modules' console.log(globalDirs.npm.binaries); //=> '/usr/local/bin' console.log(globalDirs.yarn.packages); //=> '/Users/sindresorhus/.config/yarn/global/node_modules' ``` -------------------------------- ### Install TypeScript (Nightly) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/typescript/README.md Installs the latest nightly build of TypeScript as a development dependency using npm. ```Bash npm install -D typescript@next ``` -------------------------------- ### Starting Project Services Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/keyv/README.md Starts the project's Docker container, launching all necessary services. This command must be executed from the root directory. ```Shell yarn test:services:start ``` -------------------------------- ### Usage Example for meow CLI Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/conventional-recommended-bump/node_modules/meow/readme.md Demonstrates a basic command-line usage of a script that utilizes meow, showing how to pass arguments and flags. ```bash $ ./foo-app.js unicorns --rainbow ``` -------------------------------- ### Install TypeScript (Stable) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/typescript/README.md Installs the latest stable version of TypeScript as a development dependency using npm. ```Bash npm install -D typescript ``` -------------------------------- ### Usage Example: Get File Name of Current Call Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/callsites/readme.md This JavaScript example demonstrates how to use the 'callsites' module to get the file name of the current execution context. It requires the 'callsites' module and then logs the file name of the first callsite in the stack. ```javascript const callsites = require('callsites'); function unicorn() { console.log(callsites()[0].getFileName()); //=> '/Users/sindresorhus/dev/callsites/test.js' } unicorn(); ``` -------------------------------- ### Install parent-module Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/parent-module/readme.md Install the parent-module package using npm. ```bash $ npm install parent-module ``` -------------------------------- ### run-p command examples Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/npm-run-all/docs/run-p.md Illustrates practical usage scenarios for the 'run-p' command, including running tasks matching a pattern, printing task labels, and executing multiple independent scripts. ```bash $ run-p watch:** $ run-p --print-label "build:** -- --watch" $ run-p -l "build:** -- --watch" $ run-p start-server start-browser start-electron ``` -------------------------------- ### Install string-width Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/ora/node_modules/string-width/readme.md Installs the string-width package using npm. ```sh npm install string-width ``` -------------------------------- ### Install Neo-Async in Node.js Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/neo-async/README.md This snippet shows the standard installation command for neo-async using npm in a Node.js environment. It ensures the library is available for use in your project. ```bash $ npm install neo-async ``` -------------------------------- ### npm-run-all Examples Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/npm-run-all/docs/npm-run-all.md Demonstrates various ways to use the `npm-run-all` command, including running scripts sequentially, in parallel, and combining both approaches. It also shows how to use glob patterns and pass arguments to scripts. ```bash $ npm-run-all --serial clean lint build:** $ npm-run-all --parallel watch:** $ npm-run-all clean lint --parallel "build:** -- --watch" $ npm-run-all -l -p start-server start-browser start-electron $ npm-run-all clean lint build $ npm-run-all --parallel lint build $ npm-run-all clean lint --parallel watch:html watch:js $ npm-run-all a b --parallel c d --sequential e f --parallel g h i $ npm-run-all a b --parallel c d --serial e f --parallel g h i ``` -------------------------------- ### Install locate-path Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/locate-path/readme.md Installs the locate-path package using npm. ```bash $ npm install locate-path ``` -------------------------------- ### Install Production Dependencies Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/lodash/release.md Installs production dependencies for the project. ```sh cd ../../; npm i --production; cd ../../ ``` -------------------------------- ### Bootstrapping Project Dependencies Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/keyv/README.md Installs all project dependencies across the workspace. This command is essential after cloning the repository or making changes to dependencies. ```Shell yarn bootstrap ``` -------------------------------- ### Install Dependencies Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/lodash/release.md Installs project dependencies using npm. ```sh npm i ``` -------------------------------- ### Install Neo-Async via Bower Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/neo-async/README.md This command shows how to install the neo-async library using the Bower package manager. Bower is a front-end package manager that helps manage front-end packages. ```bash bower install neo-async ``` -------------------------------- ### Usage Example for meow CLI Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/conventional-changelog-writer/node_modules/meow/readme.md Demonstrates a basic command-line usage of a script that utilizes meow, showing how to pass arguments and flags. ```bash $ ./foo-app.js unicorns --rainbow ``` -------------------------------- ### Install global-dirs with npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/global-dirs/readme.md Installs the global-dirs package using npm. This is the standard way to add the package to your project's dependencies. ```bash $ npm install global-dirs ``` -------------------------------- ### Install immediate using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/immediate/README.md This command installs the 'immediate' library as a dependency for your project using npm. ```bash npm install immediate --save ``` -------------------------------- ### Install git-raw-commits (npm) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/git-raw-commits/README.md Installs the git-raw-commits package as a project dependency using npm. ```sh $ npm install --save git-raw-commits ``` -------------------------------- ### Install git-semver-tags via npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/git-semver-tags/README.md Installs the `git-semver-tags` package as a project dependency using npm. ```shell npm install --save git-semver-tags ``` -------------------------------- ### Install Keyv and Storage Adapters (Bash) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/keyv/README.md Installs the Keyv library and optional storage adapters for various databases like Redis, MongoDB, SQLite, PostgreSQL, MySQL, and Etcd using npm. ```Bash npm install --save keyv npm install --save @keyv/redis npm install --save @keyv/mongo npm install --save @keyv/sqlite npm install --save @keyv/postgres npm install --save @keyv/mysql npm install --save @keyv/etcd ``` -------------------------------- ### Usage Example for meow CLI Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/conventional-changelog-core/node_modules/meow/readme.md Demonstrates a basic command-line usage of a script that utilizes meow, showing how to pass arguments and flags. ```bash $ ./foo-app.js unicorns --rainbow ``` -------------------------------- ### Install locate-path using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/read-pkg-up/node_modules/locate-path/readme.md Installs the locate-path package as a project dependency using npm. ```bash $ npm install --save locate-path ``` -------------------------------- ### Run Inquirer.js Examples Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/inquirer/README.md Commands to run example scripts provided within the Inquirer.js package. These examples showcase different prompt types and functionalities. ```shell node packages/inquirer/examples/pizza.js ``` ```shell node packages/inquirer/examples/checkbox.js ``` -------------------------------- ### Install own-keys via npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/own-keys/README.md This command installs the 'own-keys' package as a dependency for your project using npm. ```sh npm install --save own-keys ``` -------------------------------- ### package.json Scripts Example Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/npm-run-all/docs/npm-run-all.md Illustrates the structure of the `scripts` field within a `package.json` file, showing how individual npm scripts are defined. ```json { "scripts": { "clean": "rimraf dist", "lint": "eslint src", "build": "babel src -o lib" } } ``` -------------------------------- ### Install git-raw-commits globally (npm) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/git-raw-commits/README.md Installs the git-raw-commits package globally, making its command-line interface available. ```sh $ npm install --global git-raw-commits $ git-raw-commits --help # for more details ``` -------------------------------- ### Initial Commit Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/AUTOVERSIONING.md Makes the initial commit to the project repository. This commit signifies the setup of autoversioning. ```bash git add . git commit -m "feat: initial autoversioning setup" ``` -------------------------------- ### Installing Yarn Dependencies Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/keyv/README.md Installs dependencies for the workspace using the Yarn package manager. This command should be run from the root directory. ```Shell yarn ``` -------------------------------- ### Install cli-width using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/cli-width/README.md Installs the cli-width package as a dependency for your project using npm. ```bash npm install --save cli-width ``` -------------------------------- ### Development Scripts Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/AUTOVERSIONING.md Lists npm scripts for development tasks such as guided commits using Commitizen, linting with ESLint, type checking, and running tests. ```bash npm run commit npm run lint npm run check-types npm run test ``` -------------------------------- ### Usage Example: Get Parent Module Path Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/parent-module/readme.md Demonstrates how to use the 'parent-module' function to get the path of the immediate parent module in a Node.js application. It logs the result to the console. ```javascript // bar.js const parentModule = require('parent-module'); module.exports = () => { console.log(parentModule()); //=> '/Users/sindresorhus/dev/unicorn/foo.js' }; ``` ```javascript // foo.js const bar = require('./bar'); bar(); ``` -------------------------------- ### Install path-key using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/npm-run-all/node_modules/path-key/readme.md Installs the path-key package as a project dependency using npm. ```bash $ npm install --save path-key ``` -------------------------------- ### Developer Setup for ModuleImporter Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/@humanwhocodes/module-importer/README.md Outlines the steps required to set up the development environment for the ModuleImporter project, including forking, cloning, installing dependencies, and running tests. ```bash 1. Fork the repository 2. Clone your fork 3. Run `npm install` to setup dependencies 4. Run `npm test` to run tests ``` -------------------------------- ### Install compare-func using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/compare-func/README.md This command installs the 'compare-func' package as a dependency for your project using npm. ```sh npm install --save compare-func ``` -------------------------------- ### Install prelude.ls via npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/prelude-ls/README.md Installs the prelude.ls library using npm, the Node Package Manager. This is the standard way to add the library to your project. ```bash npm install prelude-ls ``` -------------------------------- ### Install min-indent using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/min-indent/readme.md This command installs the min-indent package as a dependency for your project using npm. ```bash npm install --save min-indent ``` -------------------------------- ### Basic meow CLI Usage Example Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/meow/readme.md Demonstrates a basic command-line execution of a script using meow, passing arguments and flags. ```shell ./foo-app.js unicorns --rainbow ``` -------------------------------- ### Install standard-version Locally Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/standard-version/README.md Installs standard-version as a development dependency and adds a 'release' script to package.json for easy versioning. ```bash npm i --save-dev standard-version ``` ```json { "scripts": { "release": "standard-version" } } ``` -------------------------------- ### Install global-prefix with npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/global-prefix/README.md Installs the global-prefix package using npm. This command adds the package as a dependency to your project. ```sh npm install --save global-prefix ``` -------------------------------- ### Configure Husky prepare script Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/husky/README.md Sets the 'prepare' script in package.json to 'husky install' and then runs it to initialize Husky in the project. ```bash npm pkg set scripts.prepare="husky install" npm run prepare ``` -------------------------------- ### Conventional Commit Examples Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/AUTOVERSIONING.md Demonstrates the correct format for conventional commit messages, including types like 'feat', 'fix', and 'docs', and how to indicate breaking changes. ```bash git commit -m "feat: add new test discovery feature" git commit -m "fix: resolve issue with test execution" git commit -m "docs: update README with new features" git commit -m "feat!: breaking change in API" ``` -------------------------------- ### Install p-locate using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/read-pkg-up/node_modules/p-locate/readme.md This command installs the p-locate package as a dependency for your project using npm. ```bash $ npm install --save p-locate ``` -------------------------------- ### Install shebang-command using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/npm-run-all/node_modules/shebang-command/readme.md This snippet shows how to install the shebang-command package using npm, making it available for use in your Node.js project. ```bash npm install --save shebang-command ``` -------------------------------- ### Install semver using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/git-semver-tags/node_modules/semver/README.md Installs the semver package from the npm registry. This is the first step to using semver in your Node.js projects. ```bash npm install semver ``` -------------------------------- ### Get Typed Array Length (JavaScript) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/typed-array-length/README.md This example demonstrates how to use the 'typed-array-length' package to get the length of various Typed Array instances. It also shows how the function returns `false` for non-Typed Array inputs. ```javascript var typedArrayLength = require('typed-array-length'); var assert = require('assert'); assert.equal(false, typedArrayLength(undefined)); assert.equal(false, typedArrayLength(null)); assert.equal(false, typedArrayLength(false)); assert.equal(false, typedArrayLength(true)); assert.equal(false, typedArrayLength([])); assert.equal(false, typedArrayLength({})); assert.equal(false, typedArrayLength(/a/g)); assert.equal(false, typedArrayLength(new RegExp('a', 'g'))); assert.equal(false, typedArrayLength(new Date())); assert.equal(false, typedArrayLength(42)); assert.equal(false, typedArrayLength(NaN)); assert.equal(false, typedArrayLength(Infinity)); assert.equal(false, typedArrayLength(new Number(42))); assert.equal(false, typedArrayLength('foo')); assert.equal(false, typedArrayLength(Object('foo'))); assert.equal(false, typedArrayLength(function () {})); assert.equal(false, typedArrayLength(function* () {})); assert.equal(false, typedArrayLength(x => x * x)); assert.equal(false, typedArrayLength([])); assert.equal(1, typedArrayLength(new Int8Array(1))); assert.equal(2, typedArrayLength(new Uint8Array(2))); assert.equal(3, typedArrayLength(new Uint8ClampedArray(3))); assert.equal(4, typedArrayLength(new Int16Array(4))); assert.equal(5, typedArrayLength(new Uint16Array(5))); assert.equal(6, typedArrayLength(new Int32Array(6))); assert.equal(7, typedArrayLength(new Uint32Array(7))); assert.equal(8, typedArrayLength(new Float32Array(8))); assert.equal(9, typedArrayLength(new Float64Array(9))); assert.equal(10, typedArrayLength(new BigInt64Array(10))); assert.equal(11, typedArrayLength(new BigUint64Array(11))); ``` -------------------------------- ### Install immediate in Node.js Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/immediate/README.md This command installs the 'immediate' library for use within a Node.js environment. ```bash npm install immediate ``` -------------------------------- ### Install locate-path using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/git-semver-tags/node_modules/locate-path/readme.md Installs the locate-path package using npm. This is the first step to using the module in a Node.js project. ```bash $ npm install locate-path ``` -------------------------------- ### Install ESLint Plugin Kit Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/@eslint/plugin-kit/README.md Provides installation commands for the ESLint Plugin Kit using various package managers like npm, yarn, pnpm, and bun for Node.js environments, as well as a command for Deno. ```shell npm install @eslint/plugin-kit # or yarn add @eslint/plugin-kit # or pnpm install @eslint/plugin-kit # or bun add @eslint/plugin-kit ``` ```shell deno add @eslint/plugin-kit ``` -------------------------------- ### Install and use git-semver-tags globally Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/git-semver-tags/README.md Installs the `git-semver-tags` package globally using npm and then executes it from the command line to list semver tags. ```shell npm install --global git-semver-tags git-semver-tags v2.0.0 v1.0.0 ``` -------------------------------- ### Install flat-cache Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/flat-cache/README.md Installs the flat-cache module using npm. This is the first step to using the library in your project. ```bash npm i --save flat-cache ``` -------------------------------- ### Install locate-path using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/git-raw-commits/node_modules/locate-path/readme.md Installs the locate-path package using npm. This is the first step to using the module in a Node.js project. ```bash $ npm install locate-path ``` -------------------------------- ### Using Keyv with quick-lru Adapter Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/keyv/README.md Integrates Keyv with the 'quick-lru' module, which implements the Map API, to provide an LRU cache. This example initializes Keyv with a QuickLRU instance. ```javascript const Keyv = require('keyv'); const QuickLRU = require('quick-lru'); const lru = new QuickLRU({ maxSize: 1000 }); const keyv = new Keyv({ store: lru }); ``` -------------------------------- ### Install get-stream using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/get-stream/readme.md This command installs the 'get-stream' package using npm, making it available for use in your Node.js project. ```bash $ npm install get-stream ``` -------------------------------- ### Initialize and Use Keyv with Different Backends (JavaScript) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/keyv/README.md Demonstrates how to initialize Keyv with different storage adapters (in-memory, Redis, MongoDB, SQLite, PostgreSQL, MySQL, Etcd) and perform basic operations like set, get, delete, and clear. It also shows how to handle connection errors. ```JavaScript const Keyv = require('keyv'); // One of the following const keyv = new Keyv(); const keyv = new Keyv('redis://user:pass@localhost:6379'); const keyv = new Keyv('mongodb://user:pass@localhost:27017/dbname'); const keyv = new Keyv('sqlite://path/to/database.sqlite'); const keyv = new Keyv('postgresql://user:pass@localhost:5432/dbname'); const keyv = new Keyv('mysql://user:pass@localhost:3306/dbname'); const keyv = new Keyv('etcd://localhost:2379'); // Handle DB connection errors keyv.on('error', err => console.log('Connection Error', err)); await keyv.set('foo', 'expires in 1 second', 1000); // true await keyv.set('foo', 'never expires'); // true await keyv.get('foo'); // 'never expires' await keyv.delete('foo'); // true await keyv.clear(); // undefined ``` -------------------------------- ### Install locate-path using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/dotgitignore/node_modules/locate-path/readme.md Installs the locate-path package using npm. This is the first step to using the library in your project. ```bash $ npm install locate-path ``` -------------------------------- ### Build Documentation with Verb Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/to-regex-range/README.md This command installs the global development version of Verb and the verb-generate-readme package, then runs the documentation generation process. It's used for building the project's README file from a template. ```sh npm install -g verbose/verb#dev verb-generate-readme && verb ``` -------------------------------- ### Install standard-version Globally Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/standard-version/README.md Installs standard-version globally, making the 'standard-version' command available in the system's PATH for use in any project. ```bash npm i -g standard-version ``` -------------------------------- ### Install locate-path using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/conventional-recommended-bump/node_modules/locate-path/readme.md Installs the locate-path package using npm. This is the first step to using the module in a Node.js project. ```bash $ npm install locate-path ``` -------------------------------- ### Install p-limit using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/p-limit/readme.md This command installs the p-limit package from the npm registry. It is a prerequisite for using the library in your Node.js project. ```bash npm install p-limit ``` -------------------------------- ### Install locate-path using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/conventional-changelog-writer/node_modules/locate-path/readme.md Installs the locate-path package using npm. This is the first step to using the module in a Node.js project. ```bash $ npm install locate-path ``` -------------------------------- ### Install locate-path using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/conventional-changelog-core/node_modules/locate-path/readme.md Installs the locate-path package using npm. This is the first step to using the module in a Node.js project. ```bash $ npm install locate-path ``` -------------------------------- ### Install get-proto using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/get-proto/README.md This command installs the 'get-proto' package as a dependency for your project using npm. ```shell npm install --save get-proto ``` -------------------------------- ### Install kind-of with npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/kind-of/README.md This command installs the 'kind-of' package as a project dependency using npm. It is the standard way to add the library to your Node.js project. ```sh npm install --save kind-of ``` -------------------------------- ### Publish to VS Code Marketplace Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/AUTOVERSIONING.md Command to publish the extension to the VS Code Marketplace. ```bash vsce publish ``` -------------------------------- ### Install longest with npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/longest/README.md Installs the 'longest' package using npm, a popular JavaScript package manager. This command adds the package as a dependency to your project. ```sh npm install --save longest ``` -------------------------------- ### Install callsites using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/callsites/readme.md This command installs the 'callsites' package using npm, making it available for use in your Node.js project. ```bash $ npm install callsites ``` -------------------------------- ### Install dependencies and run tests Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/homedir-polyfill/README.md This command installs all necessary project dependencies, including development dependencies, and then executes the project's test suite. This is a common practice for verifying the functionality and stability of a library. ```sh npm install && npm test ``` -------------------------------- ### Install string-width via npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/string-width/readme.md Installs the string-width package using npm, the Node Package Manager. This is the standard way to add the module as a project dependency. ```bash $ npm install string-width ``` -------------------------------- ### Using a Custom Storage Adapter with Keyv Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/keyv/README.md Demonstrates how to initialize Keyv with a custom storage adapter. The adapter must follow the Map API. This example shows integration with a local file './my-storage-adapter'. ```javascript const Keyv = require('keyv'); const myAdapter = require('./my-storage-adapter'); const keyv = new Keyv({ store: myAdapter }); ``` -------------------------------- ### Install Dependencies and Run Tests (Shell) Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/picomatch/README.md Provides the command to install project dependencies using npm and then run the associated tests. This is a standard procedure for verifying the library's functionality and ensuring it meets expected behavior. ```shell npm install && npm test ``` -------------------------------- ### Install string-width via npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/string-width-cjs/readme.md Installs the string-width package using npm, the Node Package Manager. This is the standard way to add the module as a project dependency. ```bash $ npm install string-width ``` -------------------------------- ### Initialize and Use LRUCache Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/lru-cache/README.md Demonstrates how to import and initialize an LRUCache instance with various configuration options. It also shows basic usage like setting and retrieving values, and handling object keys. ```javascript // hybrid module, either works import { LRUCache } from 'lru-cache' // or: const { LRUCache } = require('lru-cache') // or in minified form for web browsers: import { LRUCache } from 'http://unpkg.com/lru-cache@9/dist/mjs/index.min.mjs' // At least one of 'max', 'ttl', or 'maxSize' is required, to prevent // unsafe unbounded storage. // // In most cases, it's best to specify a max for performance, so all // the required memory allocation is done up-front. // // All the other options are optional, see the sections below for // documentation on what each one does. Most of them can be // overridden for specific items in get()/set() const options = { max: 500, // for use with tracking overall storage size maxSize: 5000, sizeCalculation: (value, key) => { return 1 }, // for use when you need to clean up something when objects // are evicted from the cache dispose: (value, key) => { freeFromMemoryOrWhatever(value) }, // how long to live in ms ttl: 1000 * 60 * 5, // return stale items before removing from cache? allowStale: false, updateAgeOnGet: false, updateAgeOnHas: false, // async method to use for cache.fetch(), for // stale-while-revalidate type of behavior fetchMethod: async ( key, staleValue, { options, signal, context } ) => {} } const cache = new LRUCache(options) cache.set('key', 'value') cache.get('key') // "value" // non-string keys ARE fully supported // but note that it must be THE SAME object, not // just a JSON-equivalent object. var someObject = { a: 1 } cache.set(someObject, 'a value') // Object keys are not toString()-ed cache.set('[object Object]', 'a different value') assert.equal(cache.get(someObject), 'a value') // A similar object with same keys/values won't work, // because it's a different object identity assert.equal(cache.get({ a: 1 }), undefined) cache.clear() // empty the cache ``` -------------------------------- ### Shorthand Promise Interaction Example Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/q/README.md Provides an example demonstrating how promise proxy methods like `get` can simplify code compared to using `then` for accessing nested properties. ```JavaScript return Q.fcall(function () { return [{ foo: "bar" }, { foo: "baz" }]; }) .then(function (value) { return value[0].foo; }); ``` ```JavaScript return Q.fcall(function () { return [{ foo: "bar" }, { foo: "baz" }]; }) .get(0) .get("foo"); ``` -------------------------------- ### Install semver using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/conventional-changelog-writer/node_modules/normalize-package-data/node_modules/semver/README.md Installs the semver package from npm. This is the first step to using semver in your Node.js project. ```bash npm install semver ``` -------------------------------- ### Install path-key using npm Source: https://github.com/upscaled-dev/behave-vsc-extension/blob/main/node_modules/path-key/readme.md Installs the path-key package using npm. This is the standard way to add the package as a dependency to your Node.js project. ```bash $ npm install path-key ```