How to use megalo - 1 common examples

To help you get started, we’ve selected a few megalo 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 kaola-fed / megalo / packages / megalo-template-compiler / index.js View on Github external
let megaloVersion
try {
  megaloVersion = require('megalo/package.json').version
} catch (e) {
  megaloVersion = require('../../package.json').version
}

let packageName = require('./package.json').name
let packageVersion = require('./package.json').version

console.log(`using ${packageName}@${packageVersion}`)
console.log(`using megalo@${megaloVersion}`)

if (megaloVersion && megaloVersion !== packageVersion) {
  throw new Error(
    '\n\nMegalo packages version mismatch:\n\n' +
    '- megalo@' + megaloVersion + '\n' +
    '- ' + packageName + '@' + packageVersion + '\n\n' +
    'This may cause things to work incorrectly. Make sure to use the same version for both.\n'

megalo

Reactive, component-oriented view layer for modern web interfaces.

MIT
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis

Popular megalo functions