const Response = require('@reasondigital/library-nodejs-server-response');
const resp = new Response();
resp.addLink('self', 'https://abc.com');
let returnData = resp.getJSON();
//{"meta":{"error":null,"pagination":null,"status":200},"data":[],"links":{"self" : {"href" : "https://abc.com"}}}
Full details on the return type.
npm install @reasondigital/library-nodejs-server-response
npm run-script lint
npm test
npm run-script doc
1* Bump semvar version in package.json
2* Run npm publish
- Add more tests
- Code coverage
- Deploy to NPM using CI/CD to run linting etc before publishing
- Typescript?