https://github.com/intersective/template-transform
https://github.com/intersective/template-transform
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/intersective/template-transform
- Owner: intersective
- Created: 2021-03-30T10:04:10.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-06T19:17:58.000Z (over 3 years ago)
- Last Synced: 2025-09-05T22:49:19.928Z (9 months ago)
- Language: TypeScript
- Size: 885 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @practera/template-transform
Facilitates the communication with the Practera preferences API.
## Health
[](https://sonarcloud.io/dashboard?id=intersective_template-transform)
[](https://sonarcloud.io/dashboard?id=intersective_template-transform)
[](https://sonarcloud.io/dashboard?id=intersective_template-transform)
[](https://sonarcloud.io/dashboard?id=intersective_template-transform)
[](https://sonarcloud.io/dashboard?id=intersective_template-transform)
[](https://sonarcloud.io/dashboard?id=intersective_template-transform)
## Install
```
$ npm install @practera/template-transform
```
## Usage
### setting up the client
JavaScript:
```js
const transform = require("@practera/template-transform");
```
TypeScript:
```js
import { transform } from "@practera/template-transform";
```
### Transforming a template
```js
const result = transform(
VersionFrom, // string, the version the template is in
VersionTo, // string, the desired version
data // {} the json data
);
```