{"analyzedAt":"2022-07-10T18:55:30.077Z","collected":{"metadata":{"name":"consume-destination-scp-cf","scope":"unscoped","version":"0.0.7","description":"NodeJS Module for accessing destination details on SAP Cloud Platform Cloud Foundry stack","keywords":["sap","scp","nodejs","destinations","cloud foundry"],"date":"2020-06-11T21:46:11.714Z","author":{"name":"Diego dos Santos"},"publisher":{"username":"diegodossantos95","email":"santos.diegod@gmail.com"},"maintainers":[{"username":"diegodossantos95","email":"santos.diegod@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/diegodossantos95/consume-destination-scp-cf.git"},"links":{"npm":"https://www.npmjs.com/package/consume-destination-scp-cf","homepage":"https://github.com/diegodossantos95/consume-destination-scp-cf#readme","repository":"https://github.com/diegodossantos95/consume-destination-scp-cf","bugs":"https://github.com/diegodossantos95/consume-destination-scp-cf/issues"},"license":"MIT","dependencies":{"cfenv":"^1.1.0","http-methods-enum":"^0.1.1","request":"^2.88.0"},"devDependencies":{"mocha":"^5.2.0","chai":"^4.2.0","chai-as-promised":"^7.1.1","nock":"^10.0.6"},"releases":[{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2020-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1}],"hasTestScript":true,"readme":"# consume-destination-scp-cf\n[![npm Package](https://img.shields.io/npm/v/consume-destination-scp-cf.svg)](https://www.npmjs.com/package/consume-destination-scp-cf)\n[![Build Status](https://travis-ci.org/diegodossantos95/consume-destination-scp-cf.svg?branch=master)](https://travis-ci.org/diegodossantos95/consume-destination-scp-cf)\n[![Generic badge](https://img.shields.io/badge/Contributions-Welcome-brightgreen.svg)](CONTRIBUTING.md)\n\nNodeJS Module for accessing destination details on SAP Cloud Platform Cloud Foundry stack\n\n## Install\n~~~\nnpm i consume-destination-scp-cf\n~~~\n\n## Prerequisites\n- Destination service instance created\n- Destination configured\n- All of the above instances bound to the node app, e.g. via `manifest.yml`:\n  ~~~ yaml\n  applications:\n  - name: my_app\n    path: my_app\n    memory: 128M\n    services:\n      - destination-instance\n  ~~~  \n  \n## Usage\n~~~ js\nconst consumeDestination = require('consume-destination-scp-cf');\n\n// Promise chain\nconsumeDestination({\n        url: '/api/json',\n        destinationInstance: 'my-destination-instance',\n        destinationName: 'myDestination',\n        httpMethod: 'POST',\n        payload: {\n            \"me\": \"here\"\n        }\n    })\n    .then(response => {\n        // handle response\n    })\n    .catch(err => {\n        // handle error\n    })\n~~~\n\n## API\n## consume-destination-scp-cf(options)\n- `url` = Optional, the url to call in the destination, absolute path (including leading slash) e.g. /api/v1/json\n- `destinationInstance` = Name of the instance of the destination service\n- `destinationName` = Name of the destination to use\n- `httpMethod` = HTTP method to use on Destination. Supported GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS.\n- `payload` = Optional, payload for POST, PUT or PATCH\n\n## License\nMIT\n\n## References\n- Adaptation of [vobu/sap-cf-destination](https://github.com/vobu/sap-cf-destination) to consume destination without Connectivity and XSUAA services."},"npm":{"downloads":[{"from":"2022-07-09T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":3},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":11},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":121},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":387},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":993}],"starsCount":0},"github":{"starsCount":2,"forksCount":2,"subscribersCount":1,"issues":{"count":28,"openCount":3,"distribution":{"3600":19,"10800":1,"32400":1,"97200":2,"291600":0,"874800":0,"2624400":0,"7873200":1,"23619600":2,"70858800":2,"212576400":0},"isDisabled":false},"contributors":[{"username":"marcosvega91","commitsCount":3},{"username":"diegodossantos95","commitsCount":33},{"username":"IObert","commitsCount":1},{"username":"dependabot[bot]","commitsCount":1}],"commits":[{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0}]},"source":{"files":{"readmeSize":1956,"testsSize":2240,"hasChangelog":true},"badges":[{"urls":{"original":"https://img.shields.io/npm/v/consume-destination-scp-cf.svg","shields":"https://img.shields.io/npm/v/consume-destination-scp-cf.svg","content":"https://img.shields.io/npm/v/consume-destination-scp-cf.json"},"info":{"service":"npm","type":"version","modifiers":{"type":"v"}}},{"urls":{"original":"https://travis-ci.org/diegodossantos95/consume-destination-scp-cf.svg?branch=master","service":"https://api.travis-ci.org/diegodossantos95/consume-destination-scp-cf.svg?branch=master","shields":"https://img.shields.io/travis/diegodossantos95/consume-destination-scp-cf/master.svg","content":"https://img.shields.io/travis/diegodossantos95/consume-destination-scp-cf/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}}]}},"evaluation":{"quality":{"carefulness":0.39499999999999996,"tests":0.6,"health":1,"branding":0.3},"popularity":{"communityInterest":9,"downloadsCount":40.333333333333336,"downloadsAcceleration":-0.7311073059360731,"dependentsCount":0},"maintenance":{"releasesFrequency":0.28664383561643836,"commitsFrequency":0,"openIssues":1,"issuesDistribution":0.652232741759109}},"score":{"final":0.5521896743254627,"detail":{"quality":0.823391855940318,"popularity":0.04040771787573279,"maintenance":0.8315126179624597}}}