SafeGuard request data stringifier library.
npm install @safeguard-apis/sg-stringSafeGuard request data stringifier library.
Using npm:
``shell`
npm install --save @safeguard-apis/sg-string
or using yarn:
`shell`
yarn add @safeguard-apis/sg-string
`
import { RequestDataStringifier } from "@safeguard-apis/sg-string"
const stringifier = new RequestDataStringifier()
const requestData = {
httpVerb: HTTP_VERB,
domain: DOMAIN
}
const stringifiedRequest = stringifier.stringify(requestData)
`
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
`bash`
docker-compose run --rm --no-deps app npm install
Now your local machine is ready for development and testing.
`bash``
docker-compose run --rm --no-deps app npm test
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.