@entur/shamash-gen

Create a shamash URL from raw graphql response or en-tur.no URL

Stats

StarsIssuesVersionUpdatedCreatedSize
@entur/shamash-gen
2.0.02 years ago3 years agoMinified + gzip package size for @entur/shamash-gen in KB

Readme

shamash-gen

Generer URL til shamash basert på rå respons fra f.eks. Chrome.

npm install --global @entur/shamash-gen

Bruk:

Usage: shamash-gen [options] <source>

Create a shamash URL from raw graphql response

Options:

  -V, --version  output the version number
  -d, --dev      Use dev environment
  -s, --staging  Use staging environment
  -h, --help     output usage information

Eksempel:

shamash-gen '{"query":"\n    query StopPlaces($id:String!) {\n        stopPlace(id:$id) {\n          id\n          name\n          latitude\n          longitude\n        }\n    }\n    ","variables":{"id":"NSR:StopPlace:6493"}}'

Gir følgende svar:

https://api.entur.io/journey-planner/v2/ide/?variables={"id":"NSR:StopPlace:6493"}&query=query StopPlaces($id:String!) {  stopPlace(id:$id) {  id  name  latitude  longitude  }  }

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.