open-index/open-npm huggingface dataset:
npm package: @pmcretail/pmc-service
Description: This package is for PMC module login and cordova plugin usage
Author: PMC
Latest version: 1.5.9

# pmc-service

pmc-service is a JavaScript library for creating login into PMC e-basket as well as to use cordova plugins

The `pmc-service` package contains only the functionality necessary to login and custom plugin usage. It is typically used to achieve login process expose for client the component.The `pmc-service` includes three enviroment for login namely QA,Pre-Production and Production

**Note:** 

## Install

```bash
npm i @pmcretail/pmc-service
```

## Example Usage

```js

import { PMCEnvironment, PMCLogin } from '@pmcretail/pmc-service';

PMCLogin("username","password","organizationCode",PMCEnvironment.qa)
 .then(function(value)
 {
  // Handle success full response
 })
 .catch(function(error) 
 {
  //Handle error
 })