1 | 'use strict';
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var assertion = require("./assertion");
|
4 | function stringify(header) {
|
5 | assertion.header(header);
|
6 | var ret = [];
|
7 | ret.push('// Type definitions for ' + header.label.name + (header.label.version ? ' v' + header.label.version : ''));
|
8 | ret.push('// Project: ' + header.project.map(function (project) {
|
9 | return project.url;
|
10 | }).join(', '));
|
11 | ret.push('// Definitions by: ' + header.authors.map(function (author) {
|
12 | return author.name + (author.url ? ' <' + author.url + '>' : '');
|
13 | }).join(', '));
|
14 | ret.push('// Definitions: ' + header.repository.url);
|
15 | return ret;
|
16 | }
|
17 | exports.stringify = stringify;
|
18 |
|
\ | No newline at end of file |