Noodles, Poodles and More!

    servidio

    0.1.7 • Public • Published

    servidio

    JavaScript Frontend Services

    NPM Version NPM Downloads jsDelivr Downloads GitHub Last Commit

    Codacy Badge Maintainability GitHub Top Language Code Size

    Overview

    Servidio is a JavaScript Frontend Service Library.
    You will find CRUD Services & String Services.
    CRUD Services is managed by Axios, otherwise Fetch if Axios is not available.

    Summary


    Package Manager

    NPM : npm i servidio
    Yarn : yarn add servidio


    CDN


    Download

    Latest Release

    git clone https://github.com/philippebeck/servidio.git


    Content

    CRUD part :

    • getData(url)
    • postData(url, data)
    • patchData(url, data)
    • putData(url, data)
    • deleteData(url)

    String part :

    • checkString(str, type)
    • rewriteString(str, type)

    Usage for Vue3 + NPM

    1. Copy the servidio/script/constants.js file to your project in the folder /src/script/ like this : /src/script/constants.js & replace values with your own values
    2. In main.js of Vue3, import servidio like this : import serve from "servidio"
    3. Then, add this line after creating App but before mounting : app.config.globalProperties.$serve = serve (example)
    4. Then use it in yours components like in these examples :
      • this.$serve.getData(url) (example)
      • this.$serve.postData(url, data)
      • this.$serve.checkString(message.name, "name") === true (example)
      • this.$serve.rewriteString(user.email, "email")

    Install

    npm i servidio

    DownloadsWeekly Downloads

    40

    Version

    0.1.7

    License

    Apache-2.0 License

    Unpacked Size

    34.1 kB

    Total Files

    13

    Last publish

    Collaborators

    • philippebeck