UNPKG

generator-nest-js-boilerplate

Version:

This generator will help you to build your own Nest.js Mongodb API using TypeScript 4

15 lines (14 loc) 318 B
module.exports = [ { type: 'input', name: 'identifier', message: "Enter your app's identifier", default: 'my-project', validate(name) { return ( /^[a-z0-9][a-z0-9\-]*$/.test(name) || 'App identifier can only contain lowercase letters, numbers and -' ); }, }, ];