UNPKG

bmi-utils

Version:

An library with some functions relates to Body Mass Index (BMI), like calculate and get the ideial weight

22 lines (19 loc) 512 B
const pkg = require('./package.json') const formats = ['iife', 'es', 'cjs', 'umd', 'amd'] const year = new Date().getFullYear() const yearString = (year === 2019) ? '2019' : `2019-${year}` const banner = `// ${pkg.name} v${pkg.version} // ${pkg.description} // ${pkg.repository} // (c) ${yearString} ${pkg.author} ` export default { input: 'src/index.js', output: formats.map(format => ({ format, banner, exports: 'named', name: 'BodyMassIndex', file: `dist/index.${format}.js` })) }