{"id":20981723,"url":"https://github.com/robertoentringer/lod-opendata","last_synced_at":"2025-09-05T16:44:54.429Z","repository":{"id":55585231,"uuid":"190074567","full_name":"robertoentringer/lod-opendata","owner":"robertoentringer","description":"A NPM package for get data of Lëtzebuerger Online Dictionnaire (LOD) from data.public.lu.","archived":false,"fork":false,"pushed_at":"2021-04-18T13:39:29.000Z","size":277,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T10:46:40.004Z","etag":null,"topics":["api","data","dictionary","json-api","lod-lu","luxembourg","luxemburgish","open-data","package","parse","public","public-api"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/lod-opendata","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/robertoentringer.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}},"created_at":"2019-06-03T20:07:45.000Z","updated_at":"2023-03-04T05:05:30.000Z","dependencies_parsed_at":"2022-08-15T03:40:40.841Z","dependency_job_id":null,"html_url":"https://github.com/robertoentringer/lod-opendata","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertoentringer%2Flod-opendata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertoentringer%2Flod-opendata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertoentringer%2Flod-opendata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertoentringer%2Flod-opendata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertoentringer","download_url":"https://codeload.github.com/robertoentringer/lod-opendata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254182772,"owners_count":22028360,"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","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","data","dictionary","json-api","lod-lu","luxembourg","luxemburgish","open-data","package","parse","public","public-api"],"created_at":"2024-11-19T05:40:10.579Z","updated_at":"2025-05-14T16:30:55.417Z","avatar_url":"https://github.com/robertoentringer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lod-opendata\n\nA NPM package for get data of Lëtzebuerger Online Dictionnaire (LOD) from data.public.lu.\n\nAuthor : [Roberto Entringer](https://robertoentringer.com)\u003cbr\u003e\nLicense: MIT\u003cbr\u003e\nRepo on Github : https://github.com/robertoentringer/lod-opendata\u003cbr\u003e\nNpm package : https://www.npmjs.com/package/lod-opendata\n\n# Installation\n\n```shell\n$ npm install lod-opendata\n```\n\n# Usage\n\n```js\nconst opendata = require('lod-opendata')\n\n// Example with async / Await\n\nconst asyncAwait = async () =\u003e {\n  //Get all fields. Use defaults\n  try {\n    const result = await opendata()\n    console.log(result)\n  } catch (error) {\n    console.log(error.message)\n  }\n}\nasyncAwait()\n\n// Example with then / catch\n\nconst thenCatch = () =\u003e {\n  //Get all fields. Use defaults\n  opendata()\n    .then((obj) =\u003e console.log(obj))\n    .catch((err) =\u003e console.log(err.message))\n\n  //Get all fields from the main `resources` field'\n  opendata('resources')\n    .then((obj) =\u003e console.log(obj))\n    .catch((err) =\u003e console.log(err.message))\n\n  //Get the `url` field from `resources` field'\n  opendata('resources/{url}')\n    .then(({ resources: [{ url }] }) =\u003e console.log(url))\n    .catch((err) =\u003e console.log(err.message))\n\n  //Get multiple main fields: `page`, `title`, `slug`\n  opendata('page,title,slug')\n    .then(({ page, title, slug }) =\u003e console.log(page, title, slug))\n    .catch((err) =\u003e console.log(err.message))\n\n  //Get multiple subfields: `id`, `published`, `latest` from main field `resources`\n  opendata('resources/{id,published,latest}')\n    .then(({ resources: [{ id, published, latest }] }) =\u003e console.log(id, published, latest))\n    .catch((err) =\u003e console.log(err.message))\n\n  //Get all fields pass a custom api `url`. Useful if the API URL changes.\n  const url = 'http://data.public.lu/api/1/datasets/letzebuerger-online-dictionnaire-raw-data'\n  opendata('', url)\n    .then((obj) =\u003e console.log(obj))\n    .catch((err) =\u003e console.log(err.message))\n}\nthenCatch()\n```\n\nSee all fields available :\u003cbr\u003e\nhttps://data.public.lu/api/1/datasets/letzebuerger-online-dictionnaire/\n\nAPI Documentation - Portail Open Data : \u003cbr\u003e\nhttps://data.public.lu/en/docapi/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertoentringer%2Flod-opendata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertoentringer%2Flod-opendata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertoentringer%2Flod-opendata/lists"}