How to use the altair-static.renderInitialOptions function in altair-static

To help you get started, we’ve selected a few altair-static examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imolorhe / altair / packages / altair-express-middleware / index.ts View on Github external
app.get('/initial_options.js', (req, res) => {
    res.set('Content-Type', 'text/javascript');
    return res.send(renderInitialOptions(opts));
  });
  app.use(express.static(getDistDirectory()));

altair-static

Static package for altair graphql client

MIT
Latest version published 6 days ago

Package Health Score

89 / 100
Full package analysis