### Start Development Server with npm Source: https://github.com/multimote/niimbluelib/blob/main/example/README.md Execute this command to start the development server for the NiimBlueLib application. ```bash npm run dev ``` -------------------------------- ### Install Dependencies with npm Source: https://github.com/multimote/niimbluelib/blob/main/example/README.md Run this command to install all necessary project dependencies using npm. ```bash npm i ``` -------------------------------- ### Install ESLint dependencies Source: https://github.com/multimote/niimbluelib/blob/main/README.md Install ESLint and its related packages. This command is for development setup and does not include ESLint in the package lock. ```bash npm install --no-save --no-package-lock eslint@9.x globals @eslint/js typescript-eslint ``` -------------------------------- ### Initialize NiimbotBluetoothClient Source: https://github.com/multimote/niimbluelib/blob/main/README.md Example of initializing the NiimbotBluetoothClient using the niimbluelib namespace after including it via CDN. ```javascript const client = new niimbluelib.NiimbotBluetoothClient(); ``` -------------------------------- ### Example HTTP POST Request for Cloud Template Source: https://github.com/multimote/niimbluelib/wiki/Home This example demonstrates how to make an HTTP POST request to the Niimbot cloud API to retrieve a template based on a 'oneCode'. Ensure the 'niimbot-user-agent' header is set appropriately. ```http POST https://print.niimbot.com/api/template/getCloudTemplateByOneCode HTTP/1.1 Content-Type: application/json niimbot-user-agent: AppVersionName/999.0.0 { "oneCode" : "LABEL_BARCODE" } ``` -------------------------------- ### Install NiimBlueLib via NPM Source: https://github.com/multimote/niimbluelib/blob/main/README.md Use this command to install the exact version of NiimBlueLib via NPM. The project is in Alpha state, so using exact versions is recommended. ```bash npm install -E @mmote/niimbluelib ``` -------------------------------- ### Include NiimBlueLib via CDN Source: https://github.com/multimote/niimbluelib/blob/main/README.md Include NiimBlueLib using a CDN link. Replace VERSION with the specific version you want to use. The script will be available under the `niimbluelib` namespace. ```html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.