Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | // The Core Code // ============= // // This file sets up the core API for the application. // First we require our internal dependencies. import parse from "./parse"; import format from "./format"; import document from "./document"; import cli from "./cli"; import {version} from "./cli"; // Then we export our public API. export default { document, format, parse, cli, version }; // Also export these as named exports export { document, format, parse, cli, version }; // The core function called by the CLI is, unsurprisingly, called `cli`. // However with it (and the other functions) you can programatically use docco. |