entrijs
v0.0.1
Published
Entri
Downloads
1,091
Keywords
Readme
EntriJS
Use Entri with your JavaScript application.
For full developer documentation, see: https://developers.entri.com
Get started
Install the package
npm install entrijs
or
yard add entrijs
Open the Entri modal
import {showEntri} from 'entrijs';
const config = {
applicationId: '123sample',
dnsRecords: [
{
type: "CNAME",
host: "www",
value: "m.test.com",
ttl: 300,
},
],
token: '345sample',
};
showEntri(config);
Read more about the config
object.
To close the modal:
import {close} from 'entrijs';
close();
Check domain
See the full documentation.
import {checkDomain} from 'entrijs';
const init = async () => {
const result = await checkDomain('mydomain.com', config);
};
Purchase domain
See the full documentation.
import {purchaseDomain} from 'entrijs';
purchaseDomain(config);