{"id":18353268,"url":"https://github.com/axelniklasson/node-skanetrafiken","last_synced_at":"2025-08-23T06:03:43.848Z","repository":{"id":78996271,"uuid":"74490446","full_name":"axelniklasson/node-skanetrafiken","owner":"axelniklasson","description":"Node.js wrapper for Skånetrafikens open API.","archived":false,"fork":false,"pushed_at":"2017-08-26T14:16:39.000Z","size":35,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T04:08:18.530Z","etag":null,"topics":["api-wrapper","node-wrapper","nodejs","skanetrafiken"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axelniklasson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-22T16:14:21.000Z","updated_at":"2024-03-03T15:46:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e42960f-918c-4413-84da-99a01348fc71","html_url":"https://github.com/axelniklasson/node-skanetrafiken","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"ba66402d4ae41270e25d14d01ad72795afd2ab29"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/axelniklasson/node-skanetrafiken","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelniklasson%2Fnode-skanetrafiken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelniklasson%2Fnode-skanetrafiken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelniklasson%2Fnode-skanetrafiken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelniklasson%2Fnode-skanetrafiken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axelniklasson","download_url":"https://codeload.github.com/axelniklasson/node-skanetrafiken/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelniklasson%2Fnode-skanetrafiken/sbom","scorecard":{"id":219920,"data":{"date":"2025-08-11","repo":{"name":"github.com/axelniklasson/node-skanetrafiken","commit":"ba66402d4ae41270e25d14d01ad72795afd2ab29"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T02:16:08.934Z","repository_id":78996271,"created_at":"2025-08-17T02:16:08.934Z","updated_at":"2025-08-17T02:16:08.934Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271103202,"owners_count":24699646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","node-wrapper","nodejs","skanetrafiken"],"created_at":"2024-11-05T21:39:06.074Z","updated_at":"2025-08-23T06:03:43.826Z","avatar_url":"https://github.com/axelniklasson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-skanetrafiken\n[![npm version](https://badge.fury.io/js/node-skanetrafiken.svg)](https://badge.fury.io/js/node-skanetrafiken)\n[![Build Status](https://travis-ci.org/axelniklasson/node-skanetrafiken.svg?branch=master)](https://travis-ci.org/axelniklasson/node-skanetrafiken)\n[![Coverage Status](https://coveralls.io/repos/axelniklasson/node-skanetrafiken/badge.svg?branch=master)](https://coveralls.io/r/axelniklasson/node-skanetrafiken?branch=master)\n[![GitHub issues](https://img.shields.io/github/issues/axelniklasson/node-skanetrafiken.svg)](https://github.com/axelniklasson/node-skanetrafiken/issues)\n[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)\n\nNode.js wrapper for Skånetrafiken's Open API. I recently had a night off and thought it would be fun to build a small node.js-wrapper for their API and in the meantime learn more about publishing npm projects and such. Aside from wrapping all endpoints in handy functions, providing the possibility to receive the data from their API in JSON instead of XML is a handy feature as well.\n\nSkånetrafikens official API documentation can be found [here](http://www.labs.skanetrafiken.se/api.asp) and this wrapper is written for the latest version (v2.2).\n\n## Implemented endpoints\nBelow are the implemented endpoints.\n- [x] /querypage.asp\n- [x] /resultspage.asp\n- [x] /querystation.asp\n- [x] /neareststation.asp\n- [x] /stationresults.asp\n- [x] /trafficmeans.asp\n- [x] /journeypath.asp\n\nDocumentation for this package can be found in the Wiki.\n\n## Limitations\n### XML to JSON conversion\nI am currently using a package called [xml2js](https://www.npmjs.com/package/xml2js) for the conversion between XML and JSON and no other formatting of the data will be provided. It is to be used as-is. In the future, returning data in XML Should also be supported.\n\n## Installation\nThis package is published to [npm](https://www.npmjs.com/package/node-skanetrafiken) and can easily be installed using\n```\nnpm install node-skanetrafiken\n```\n\n## Usage\nBelow shows a simple example of finding a stop by name. Docs for all endpoints can be found in the [Wiki](https://github.com/axelniklasson/node-skanetrafiken/wiki/API-documentation).\n```\n// demo.js\n\nvar nodeSkanetraiken = require('node-skanetrafiken');\n\nnodeSkanetraiken.findStop({ name: 'Kristianstad' }, function(results, err) {\n    if (!err) {\n        // Do something with the results\n    }\n});\n```\n\n## Hack on this\n### Getting started\n```\ngit clone https://github.com/axelniklasson/node-skanetrafiken.git\nnpm install\n```\n\nTests are run using\n```\nnpm test\n```\n\n### Contributing\nPull Requests are always welcome. All PRs Should contain appropriate tests and submitted to the ``development`` branch. PRs that break the build in Travis will not be accepted, for obvious reasons.\n\n## License\nThis package is MIT licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelniklasson%2Fnode-skanetrafiken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxelniklasson%2Fnode-skanetrafiken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelniklasson%2Fnode-skanetrafiken/lists"}