Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function* generate() {
yield `# Awesome Typed Datasets [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)`;
const displayNames = defaultTargetLanguages
.map(l => l.displayName)
.filter(d => d !== "Simple Types");
const nameList =
displayNames.slice(1).join(", ") + ", and " + displayNames[0];
yield* [
``,
`These are public JSON datasets that have been strongly`,
`typed with [quicktype](https://github.com/quicktype/quicktype).`,
`Each is a repo with code in ${nameList} for`,
`reading and writing the JSON produced by these APIs.`,
``
];
for (const name of Object.keys(categories).sort()) {
yield* categoryList(name, categories[name]);