Package Exports
- skapi-js
- skapi-js/dist/skapi.module.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (skapi-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
skapi
Serverless-based backend API service designed to simplify your application's security and database management.
For HTML projects
To import skapi into an HTML project, add the following script to the head tag of your HTML file:
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/skapi-js@latest/dist/skapi.js"></script>
...
</head>
<body>
...
</body>
<script>
const skapi = new Skapi('your_service_id', 'your_user_id');
</script>
</html>
For webpack projects
To use skapi in a webpack-based project (such as Vue, React, or Angular), first install skapi-js from npm:
$ npm install skapi-js@latest
Then, import the library into your main JavaScript file:
// main.js
import { Skapi } from 'skapi-js';
const skapi = new Skapi('your_service_id', 'your_user_id');