1.0.3 • Published 2 years ago

ptstr v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Ptstr

Track your module

Installation

Dillinger requires Node.js v10+ to run.

Install the dependencies and devDependencies and start the server.

npm install ptstr --save

Usage

Import module

import Ptstr from 'ptstr'

In initial method, configure access:

const firebaseConfig = { // Set your private firebase connection
  apiKey: "",
  authDomain: "",
  projectId: "",
  storageBucket: "",
  messagingSenderId: "",
  appId: ""
}
// Create instance
var ptstr = new Ptstr(firebaseConfig)

Register domain in firestore

let domain = window.location.hostname // Domain or main document ID
let moduleName = 'MyModule' // Module name for record information
let extraData = { // Optional extra data
    version: '1.0.2',
    license: 'MyLicenseNumber'
}
ptstr.registerDomain(domain, moduleName, extraData)
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago