UNPKG

lux-framework

Version:

Build scalable, Node.js-powered REST APIs with almost no code.

16 lines (14 loc) 290 B
// @flow import { insertValues } from '../../template'; /** * @private */ export default function line( strings: Array<string>, ...values: Array<mixed> ): string { return insertValues(strings, ...values) .replace(/(\r\n|\n|\r|)/gm, '') .replace(/\s+/g, ' ') .trim(); }