How to use the material-design-icons/package.json.version function in material-design-icons

To help you get started, we’ve selected a few material-design-icons 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 darosh / material-icons-bundle / build / lib / loadGoogle.js View on Github external
files.forEach(file => {
          const segments = file.split(path.sep)

          data.push({
            file: file,
            source: 'Google',
            author: 'Google',
            name: segments[segments.length - 1].replace(/^ic_/, '').replace(/_24px\.svg$/, '').replace(/[-_]/g, ' '),
            category: segments[segments.length - 4],
            version: 'Google ' + require('material-design-icons/package.json').version
          })
        })
github darosh / material-icons-bundle / build / meta.js View on Github external
files.forEach(file => {
      const segments = file.split(path.sep)

      data.push({
        file: file,
        category: segments[segments.length - 4],
        source: 'Google',
        author: 'Google',
        version: 'Google ' + require('material-design-icons/package.json').version,
        name: segments[segments.length - 1].replace(/^ic_/, '').replace(/_24px\.svg$/, '').replace(/[-_]/g, ' ')
      })
    })