{"id":28627290,"url":"https://github.com/philippebeck/servidio","last_synced_at":"2026-04-15T21:31:14.408Z","repository":{"id":40455328,"uuid":"487126706","full_name":"philippebeck/servidio","owner":"philippebeck","description":"JavaScript Frontend Services","archived":false,"fork":false,"pushed_at":"2024-01-03T12:43:57.000Z","size":447,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T20:41:23.531Z","etag":null,"topics":["checkers","fetchers","frontend-service","getters","grunt","jest","metadata","regex","setters"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philippebeck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2022-04-29T22:34:57.000Z","updated_at":"2025-08-27T12:30:44.000Z","dependencies_parsed_at":"2025-06-12T09:08:44.182Z","dependency_job_id":"e8d936c9-42fd-4908-9dcd-2bdcc1e0736d","html_url":"https://github.com/philippebeck/servidio","commit_stats":{"total_commits":122,"total_committers":1,"mean_commits":122.0,"dds":0.0,"last_synced_commit":"678165b4d168708e28ff66270b59b9421fa37b95"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/philippebeck/servidio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippebeck%2Fservidio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippebeck%2Fservidio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippebeck%2Fservidio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippebeck%2Fservidio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philippebeck","download_url":"https://codeload.github.com/philippebeck/servidio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippebeck%2Fservidio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31861256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["checkers","fetchers","frontend-service","getters","grunt","jest","metadata","regex","setters"],"created_at":"2025-06-12T09:08:38.767Z","updated_at":"2026-04-15T21:31:14.383Z","avatar_url":"https://github.com/philippebeck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Servidio\n\nJavaScript Frontend Services\n\n[![NPM Version](https://badgen.net/npm/v/servidio)](https://www.npmjs.com/package/servidio)\n[![GitHub Top Language](https://img.shields.io/github/languages/top/philippebeck/servidio)](https://github.com/philippebeck/servidio)\n[![Code Size](https://img.shields.io/github/languages/code-size/philippebeck/servidio)](https://github.com/philippebeck/servidio/tree/master)\n\n[![NPM Downloads](https://badgen.net/npm/dt/servidio)](https://www.npmjs.com/package/servidio)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b65b93fc3484479aa02c1891609e47e2)](https://www.codacy.com/gh/philippebeck/servidio/dashboard)\n[![Maintainability](https://api.codeclimate.com/v1/badges/8ada4e929f6116145366/maintainability)](https://codeclimate.com/github/philippebeck/servidio/maintainability)\n\n---\n\n## Summary\n\n[Overview](#overview)  \n[Package](#package)  \n[CDN](#cdn)  \n[Download](#download)  \n[Content](#content)  \n[Test](#test)  \n\n---\n\n## Overview\n\nServidio is a JavaScript Frontend Service Library.  \nYou will find some Services with Checkers, Fetchers, Getters \u0026 Setters.  \nServidio use only Axios as dependency.  \n\n---\n\n## Package *(recommended)*\n\nNPM : `npm i servidio`  \nor  \nYarn : `yarn add servidio`  \n\n---\n\n## CDN *(not recommended)*\n\n-   Development : [https://cdn.jsdelivr.net/npm/servidio@3.1.1/dist/serve.js](https://cdn.jsdelivr.net/npm/servidio@3.1.1/dist/serve.js)  \n-   Production : [https://cdn.jsdelivr.net/npm/servidio@3.1.1/dist/serve.min.js](https://cdn.jsdelivr.net/npm/servidio@3.1.1/dist/serve.min.js)  \n\n---\n\n## Download\n\n[Latest Release](https://github.com/philippebeck/servidio/releases)  \nor  \n`git clone https://github.com/philippebeck/servidio.git`  \nor  \n[Master ZIP](https://github.com/philippebeck/servidio/archive/refs/heads/master.zip)\n  \n---\n\n## Content\n\nCheckers part :  \n-   **checkRange(value, message, min, max)** : check range between min \u0026 max  \n-   **checkRegex(value, message, regex)** : check value with regex  \n-   **checkRole(userRole, role)** check role between admin, editor or user  \n\nFetchers part :  \n-   **setAxios(token, type)** set axios params  \n-   **postData(url, data, token, type)** post data with axios  \n-   **getData(url, token, type)** get data with axios  \n-   **putData(url, data, token, type)** put data with axios  \n-   **deleteData(url, token, type)** delete data with axios  \n\nGetters part :  \n-   **getCats(items)** get categories from an array of objects  \n-   **getItemName(id, items)** get image name  \n-   **getItemsByCat(items, sortBy)** get items by category property  \n\nSetters part :  \n-   **setError(error)** : set error message  \n-   **setGlobalMeta(lang, icon)** set html lang \u0026 favicon  \n-   **setMeta(title, description, url, image)** set all meta for pages  \n\n---\n\n## Test\n\nYou can run unit tests with Jest :  \n`npm test`  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippebeck%2Fservidio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilippebeck%2Fservidio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippebeck%2Fservidio/lists"}