JSPM

skapi-js

0.1.47
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 755
  • Score
    100M100P100Q101004F
  • License Apache-2.0

skapi serverless cloud javascript library

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');