https://github.com/testinggospels/camouflage-helpers
https://github.com/testinggospels/camouflage-helpers
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/testinggospels/camouflage-helpers
- Owner: testinggospels
- License: mit
- Created: 2024-01-05T10:23:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T06:44:47.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T17:44:31.784Z (about 1 year ago)
- Language: TypeScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Camouflage Helpers
Camouflage helpers are a set of handy handlebar helpers that help you easily create the Camouflage mocks. They form the backbone of each protocol. You can build your mocks without them, but helpers add advanced features to your mocks. You can choose the protocol specific package that you need to download, helpers are included with each module.
Learn more about camouflage helpers in the [docs](https://testinggospels.github.io/camouflage-docs)
## Install Helpers
```bash
npx jsr add @camouflage/helpers
```
Note: update your `package.json` to use `"type": "module"`
## Usage
```javascript
import Helpers from "@camouflage/helpers";
const helpers = new Helpers();
const todaysDate = helpers.parse("{{now format='yyyy-MM-dd'}}");
console.log(todaysDate); // 2023-12-21
```