# base-api

> Base Api module

Latest version **0.0.3** (published 2015-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install base-api
pnpm add base-api
yarn add base-api
bun add base-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-07-13 |
| First published | 2015-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Rahul Pal |
| Maintainers | drapal |
| Keywords | baseapi, api, base-api |

## Links

- npm: https://www.npmjs.com/package/base-api
- Repository: https://github.com/rahpal/Base-Api
- Issues: https://github.com/rahpal/Base-Api/issues
- npm.io page: https://npm.io/package/base-api

## Recent versions

- 0.0.3 (latest) — 2015-07-13
- 0.0.2 — 2015-07-13
- 0.0.1 — 2015-07-13

## README

# Base-Api
An api written in Javascript for centrallizing Ajax calls and returning response via Promise Object. This API is compliant with ECMA 2015 new features and syntaxs and is transpiled to ECMA 5 via Babel. 
##### How to install
npm install base-api
##### Dependencies
<strong><i>Angular</i></strong> for ng-base-api.js<br>
<strong><i>JQuery</i></strong> for amd-base-api.js
##### How to use
Include the files(as per your project requirement/technologies) and inject the module into your js files.

###### Eg.
<b>For Project based on AngularJS Framework</b><br>
angular.module('Module1').controller('DummyController', ['BaseApiFactory', function(baseApiFactory){<br>
  &nbsp;&nbsp;&nbsp;baseApiFactory.get(...);<br>
  &nbsp;&nbsp;&nbsp;baseApiFactory.post(...);<br>
  &nbsp;&nbsp;&nbsp;baseApiFactory.put(...);<br>
}]);
<br><br>
<b>For Project based on AMD pattern</b><br>
define(['amd-base-api-es5'], function(baseApiFactory){<br>
  &nbsp;&nbsp;&nbsp;baseApiFactory.get(...);<br>
  &nbsp;&nbsp;&nbsp;baseApiFactory.post(...);<br>
  &nbsp;&nbsp;&nbsp;baseApiFactory.put(...);<br>
});

---
_Source: https://npm.io/package/base-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
