Async initialisation of node lib

nodejs
// package.json
{
  "name": "your-pkg",
  "exports": {
    ".": "./with-top-level-await.js",
    "./init": "./without-top-level-await.js"
  }
}
// >= node 14 (with top-level await support)
import api from 'your-pkg';

// < node 14
import init from 'your-pkg/init';

(async function() {
  const api = await init();
})();