3.1.1 • Published 4 months ago

servidio v3.1.1

Weekly downloads
-
License
Apache-2.0 Licens...
Repository
github
Last release
4 months ago

Servidio

JavaScript Frontend Services

NPM Version GitHub Top Language Code Size

NPM Downloads Codacy Badge Maintainability


Summary

Overview
Package
CDN
Download
Content
Test


Overview

Servidio is a JavaScript Frontend Service Library.
You will find some Services with Checkers, Fetchers, Getters & Setters.
Servidio use only Axios as dependency.


Package (recommended)

NPM : npm i servidio
or
Yarn : yarn add servidio


CDN (not recommended)


Download

Latest Release
or
git clone https://github.com/philippebeck/servidio.git
or
Master ZIP


Content

Checkers part :

  • checkRange(value, message, min, max) : check range between min & max
  • checkRegex(value, message, regex) : check value with regex
  • checkRole(userRole, role) check role between admin, editor or user

Fetchers part :

  • setAxios(token, type) set axios params
  • postData(url, data, token, type) post data with axios
  • getData(url, token, type) get data with axios
  • putData(url, data, token, type) put data with axios
  • deleteData(url, token, type) delete data with axios

Getters part :

  • getCats(items) get categories from an array of objects
  • getItemName(id, items) get image name
  • getItemsByCat(items, sortBy) get items by category property

Setters part :

  • setError(error) : set error message
  • setGlobalMeta(lang, icon) set html lang & favicon
  • setMeta(title, description, url, image) set all meta for pages

Test

You can run unit tests with Jest :
npm test

3.1.1

4 months ago

3.1.0

5 months ago

3.0.2

5 months ago

3.0.1

5 months ago

3.0.0

6 months ago

2.2.1

11 months ago

2.2.0

11 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

2.0.3

1 year ago

2.1.1

12 months ago

2.0.2

1 year ago

0.11.0

1 year ago

2.1.0

12 months ago

2.0.1

1 year ago

2.0.0

1 year ago

0.10.0

1 year ago

0.3.0

1 year ago

0.9.0

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.2.0

1 year ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago