Programmatic API. The CLI is a thin layer over these functions; the JSON report format is schemaVersion 0 and may change before 1.0.
schemaVersion
import { analyzeLockfile, buildReport, CachedFetcher, HttpFetcher, loadPublisherPolicy, render } from '@mcamdali/podexit';const policy = loadPublisherPolicy();const fetcher = new CachedFetcher(new HttpFetcher({ userAgent: 'my-tool' }), { directory: '.cache' });const lockfile = await analyzeLockfile(text, 'ios/Podfile.lock', { fetcher, policy });console.log(render(buildReport([lockfile], { policy, offline: false }), 'markdown')); Copy
import { analyzeLockfile, buildReport, CachedFetcher, HttpFetcher, loadPublisherPolicy, render } from '@mcamdali/podexit';const policy = loadPublisherPolicy();const fetcher = new CachedFetcher(new HttpFetcher({ userAgent: 'my-tool' }), { directory: '.cache' });const lockfile = await analyzeLockfile(text, 'ios/Podfile.lock', { fetcher, policy });console.log(render(buildReport([lockfile], { policy, offline: false }), 'markdown'));
Programmatic API. The CLI is a thin layer over these functions; the JSON report format is
schemaVersion0 and may change before 1.0.