@pitcher/js-api
TypeScript icon, indicating that this package has built-in type declarations

1.23.0 • Public • Published

@pitcher/js-api

This is the JavaScript API to interact with the data layer of the NG platform.

Usage

In the browser

<!doctype html>
<html>
  <head>
    <title>My app</title>
    <script src="https://unpkg.com/@pitcher/js-api"></script>
    <!-- or for beta: -->
    <!-- <script src="https://unpkg.com/@pitcher/js-api@beta"></script> -->
  </head>
  <body>
    <script>
      const api = pitcher.usePitcherApi()
      const ui = pitcher.useUi()
      const admin = pitcher.useAdmin()

      api.getEnv()
      ui.selectContent()
      admin.getEnv()
    </script>
  </body>
</html>

For more details, please visit the documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i @pitcher/js-api

Weekly Downloads

97

Version

1.23.0

License

none

Unpacked Size

2.4 MB

Total Files

893

Last publish

Collaborators

  • aleetesting
  • grzk
  • wojtiku
  • dtornazakis
  • zinelisorestis
  • geokal94
  • pitcherci
  • chantter
  • pit-joshua
  • pegiadise