@safeguard-apis/sg-string
v0.0.18
Published
SafeGuard request data stringifier library.
Downloads
558
Readme
SafeGuard Device Auth Request Data Stringifier
SafeGuard request data stringifier library.
Installation
Using npm:
npm install --save @safeguard-apis/sg-string
or using yarn:
yarn add @safeguard-apis/sg-string
Usage
import { RequestDataStringifier } from "@safeguard-apis/sg-string"
const stringifier = new RequestDataStringifier()
const requestData = {
httpVerb: HTTP_VERB,
domain: DOMAIN
}
const stringifiedRequest = stringifier.stringify(requestData)
Contributing
Setup development environment
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
Install npm dependencies
docker-compose run --rm --no-deps app npm install
Now your local machine is ready for development and testing.
Running the tests
docker-compose run --rm --no-deps app npm test
Deployment
Pushes a commit to master with the message Release 1.2.3, the npm-publish action will create a new tag v1.2.3 and publish the package to the npm registry.