npm.io
1.0.0 • Published 2 years ago

@ryniaubenpm2/porro-incidunt-fugiat

Licence
MIT
Version
1.0.0
Deps
19
Size
14 kB
Vulns
0
Weekly
0

@ryniaubenpm2/porro-incidunt-fugiat

Declarative library for describing endpoints.

Install

npm:

npm install @ryniaubenpm2/porro-incidunt-fugiat

yarn:

yarn add @ryniaubenpm2/porro-incidunt-fugiat

Usage

Describe your request scheme

import @ryniaubenpm2/porro-incidunt-fugiat from '@ryniaubenpm2/porro-incidunt-fugiat';

export const requests = @ryniaubenpm2/porro-incidunt-fugiat('10.16.0.140', 9001)
    .group('list', {
        get: {
            all: 'get-all-lists',
        },
        post: {
            save: 'save-list',
            create: 'get-empty-list'
        }
    })
    .group('ports', {
        get: {
            ports: (count) => `get-ports?count=${count}`,
        }
    })
    .end();

And send your requests to any place

import { requests } from 'requests';

const showLists = async () => {
    try {
        const response = await fetch(requests.list.get.all);
        const answer = await response.json();
        console.log(answer);
    } catch (error) {
        console.error(error);
    }
}
import { requests } from 'requests';
import axios from 'axios';

const showLists = async () => {
    try {
        const response = await axios.get(requests.list.get.all);
        console.log(response.data);
    } catch (error) {
        console.error(error);
    }
}

License

MIT

Keywords

TypeBoxArray.prototype.flattenemojiwarningdropthrottlecontainsObject.entriesasterror-handlingcopyArray.prototype.findLastIndexworkflowponyfillsigintcjkObject.valuesreadisidlegetintrinsicvaluescore-jsAsyncIteratorfoldercallworkspace:*everytypelastES2020Observableimportexportpostcssmergereal-timepackagemobileURLflatMapsesdeepCSSclipluginuninstallxhrcompareArray.prototype.filteres2018starteragentsymbolsfastkeyshelldatereact-testing-libraryregexpECMAScript 2016WebSocketsconsolenested cssweboperating-systemflattenes2015byteOffsetprefixjsones8Uint16Arraysignalmkdirpeast-asian-widthES3regular expressionMaphashRegExp#flagsStyleSheettypedpackage.jsonrandomimmutablees2016accessibilityenvironmentperformantcreateelasticacheextendbootstrap lessmruglobalec2functionnameloadbalancingtypeerrorconcatMapfastcloneclassnameJSON-SchemabundlerlinuxforEachconfigurablestdlibxtermless cssomitECMAScript 2022bluebirdurlsigtermtsstyleestreewafavatapfast-cloneawesomesaucewalkingArray.prototype.flatprivate data$.extendieenvironmentspreserve-symlinkshasOwnPropertyArray.prototype.flatMapendershebangfileStreamsrmdirconcatauthECMAScript 2018validateObject.fromEntriesvarsiames-shim APIfetchtaskcode pointshttpsgetoptformsESnextcloudtrailparsea11ynpmperformanceemrjwthelpersglacierInt16Array-0ES2015charactersnamessetautoscalingchildhooksArrayBuffer#slicebatchweaksetreduxUint8Arrayzerorm -frencryptionmomentinstalllistenersbufferidtapepathgetPrototypeOfboundcomputed-typesMicrosoftpromisesindicatorsuperstructsymlinkebsES8installerBigUint64Arraywritecolorspnpm9hookformcloudsearchFloat64ArrayFunction.prototype.nameserializerstreammatchAllcolourprogressslotstyled-components_.extendviewcollection.es6trimRighti18nweakmapSymbol.toStringTagdeep-copyES2021jesttesterHyBijapanesebrowsersliststartsetPrototypeOfJSONUint8ClampedArrayECMAScript 7writablezodbcryptisConcatSpreadablecloudfrontpreprocessorcollectionrequestexetoolses6cmdarrayqueuequotelruasserthigher-orderdom-testing-libraryfullwidthtakebyteLengthECMAScript 2015less.jscloudformationfastcopyrgbcallboundpolyfillRxJSinputwrapUint32Arraywebsitemime-dblivetrimrecursiveeslintconfigSymbolutilschemaproxykinesissettingsquerystringttysetImmediateES5monorepospecECMAScript 2017stringifyhttpmake dirUnderscoretouchlook-upreadabletypanionpasswordstateprocess0channelmkdirgroupBychromiumjsdiffcss variablecommandvariables in cssprivateyamlcoreclass-validatorexpressajv@@toStringTagECMAScript 6asciiartreact-hook-formexit-codeerrorTypedArrayspinnerssharedarraybufferspawnES2023rangeerrortrimEndreacteditorsetterutilityreuseequal__proto__apidiffbddcloudwatchtypedarraysqueryinterruptses-abstractqueueMicrotaskarktypebeanstalkWeakSettelephonelibphonenumbernegativelintflatoptimisttoArrayirqawsgetassertionlinkresolveargparsepostcss-pluginECMAScript 2020has-owninferencecompile lesshasfiglettslibcurlratemacoseslint-plugincryptpyyamlswfparentcryptoinvariantshamjsframeworkargsObject.getPrototypeOfgdprtddes5readablestreamconnectsequenceloggerstringifierpersistentpipefindupcommanderstreamsformfull-widthtypesarraysES2019dependenciesawaitcirculardayjswindowstc39checkdefinePropertydeepclonefastifyfast-deep-copywatchshimlockfiledirectoryimmersyntaxremovebytelinewrapsearchregularparents256sortedwalkform-validationinternal slotargumentsexecutablekeystypeofstatusdotenvjshintrestdynamodbcss lesseslintInt32Arrayless compilercoerciblechromewatchingfpsesstatelessdeletetestingio-tsgetOwnPropertyDescriptorworkerterminalpruneroute53safeconsumepredictablerm -rfpushtest[[Prototype]]equalitymimefast-deep-cloneopenextension