anx-docgen

1.1.0 • Public • Published

anx-docgen

This is a small utility, powered by react-docgen, library that we use to power our React component library documentation. It's highly opinionated so your mileage may vary.

Usage

  const anxDocgen = require('anx-docgen');

  anxDocgen.fromPaths([
    './components/MyComponent.jsx',
    './components/FooComponent.jsx',
  ]).then((docgenMap) => {
    // `docgenMap` is a data structure that describes your components, see 'test/fixtures/01/docgenMap.json' for an example of what it looks like
    console.log(docgenMap);
  });

/anx-docgen/

    Package Sidebar

    Install

    npm i anx-docgen

    Weekly Downloads

    1

    Version

    1.1.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • appnexus