Use Entri with your JavaScript application.
For full developer documentation, see: https://developers.entri.com
```
npm install entrijs`
or`
yard add entrijs
`
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();
`
See the full documentation.
`
import {checkDomain} from 'entrijs';
const init = async () => {
const result = await checkDomain('mydomain.com', config);
};
`
See the full documentation.
`
import {purchaseDomain} from 'entrijs';
purchaseDomain(config);
``