Install via npm
$ npm install acme-protocol
var ACME = require( 'acme-protocol' )
var client = new ACME({
baseUrl: 'https://acme-staging.api.letsencrypt.org'
})
client.getDirectory( function( error, data ) {
// data -> {
// 'new-authz': 'https://acme-staging.api.letsencrypt.org/acme/new-authz',
// 'new-cert': 'https://acme-staging.api.letsencrypt.org/acme/new-cert',
// 'new-reg': 'https://acme-staging.api.letsencrypt.org/acme/new-reg',
// 'revoke-cert': 'https://acme-staging.api.letsencrypt.org/acme/revoke-cert'
// }
})