Skip to main content

Form Renderer installation

Form renderer is a JavaScript library hosted on Better private npm registry. To be able to download and consume it you need a JavaScript package manager of choice (npm or yarn) and a valid credentials for Better npm registry.

Installation setup

In your terminal execute following command to log in to Better registry:

npm login --registry=https://npm.better.care/repository/npm-group/
npm config set @better:registry https://npm.better.care/repository/npm-group/
warning
Starting with version 3.9.0, the package name has changed from @better-web-components/form-renderer to @better/form-renderer. Both packages are currently available, but please update to the new name as soon as possible, as distribution of @better-web-components/form-renderer will be discontinued in the future.

With that set of commands you are logging in to Better registry, setting up a scope for registry @better so that only packages published under that scope will be fetched from Better registry, and the rest will still be fetched from global npm/yarn registry.

For example: npm i lodash @better/form-renderer will result in getting lodash package from https://registry.npmjs.org/ and @better will be fetched from https://npm.better.care/.

Install Form Renderer

Use one of the following package managers to install Form Renderer:

npm

npm install @better/form-renderer

yarn

yarn add @better/form-renderer