Socket
Book a DemoInstallSign in
Socket

@musora/services

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@musora/services

HTTP request modules for all Musora back-end services

0.1.4
latest
Source
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
3
Weekly downloads
 
Created
Source

js-services - @musora/services

HTTP request modules for all Musora back-end services

Build Status Coverage Status

Installation

Yarn

yard add @musora/services

NPM

npm install @musora/services --save

Usage

Configure the Instance

When your app starts up, you can call the configue method below to configure your current request instance with some defaults, like the base url and the users authentication token.

import { configure } from '@musora/services';

configure({
    baseUrl: 'https://drumeo.com/laravel/public',
    contentType: 'application/json',
    accept: 'application/json',
    authToken: '...'
});

Entire Module

import Services from '@musora/services';

Services.Railcontent.getContent(...);

Individual Module

import { Railcontent } from '@musora/services';

Railcontent.getContent(...);

Individual Function

import { getContent } from '@musora/services';

getContent(...);

Local Development

  • yarn test - Run all tests
  • yarn docs - Auto generate documentation

FAQs

Package last updated on 09 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.