{"_id":"@ai-first/renderer-maxdome","_rev":"3-38e9d368e31590862f29970915ecdf09","name":"@ai-first/renderer-maxdome","description":"Generate localized texts with configurable parts for maxdome assets, maxperts and reviews","dist-tags":{"latest":"1.2.5"},"versions":{"1.2.4":{"engines":{"node":"^7.6.0"},"name":"@ai-first/renderer-maxdome","version":"1.2.4","description":"## Simplest usage, only the asset title","repository":{"type":"git","url":"git+https://github.com/sharaal/ai-first-renderer-maxdome.git"},"license":"UNLICENSED","publishConfig":{"access":"public"},"scripts":{"test":"mocha --recursive"},"dependencies":{"i18n":"^0.8.3"},"devDependencies":{"mocha":"^3.4.1"},"gitHead":"cd19877d6b792cedc3de1d102846d97f2a5dd916","bugs":{"url":"https://github.com/sharaal/ai-first-renderer-maxdome/issues"},"homepage":"https://github.com/sharaal/ai-first-renderer-maxdome#readme","_id":"@ai-first/renderer-maxdome@1.2.4","_shasum":"96e92f33d2f61c3dcb30863de3df8ae0a38cd621","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"sharaal","email":"christoph.herrmann@maxdome.de"},"dist":{"shasum":"96e92f33d2f61c3dcb30863de3df8ae0a38cd621","tarball":"https://registry.npmjs.org/@ai-first/renderer-maxdome/-/renderer-maxdome-1.2.4.tgz","integrity":"sha512-mvBi2L0CcHpkcCD5NZJG7D43s00Gev2dqV1aRllTlmlfKe8+K8WrNxKX8VvZwZ1t3LVEGo9JPfJRLJqCHpeoYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAjQVaFWH3dJyK9m9jk5Rlh1rVzjh3jsjDGqWW2qgAtQIgUJfv59v3va12Q9dlKX8Cr8OORCbqay6LbzcMz74dSDw="}]},"maintainers":[{"name":"sharaal","email":"christoph.herrmann@maxdome.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/renderer-maxdome-1.2.4.tgz_1495544625764_0.8084854790940881"}},"1.2.5":{"engines":{"node":"^7.6.0"},"name":"@ai-first/renderer-maxdome","version":"1.2.5","description":"Generate localized texts with configurable parts for maxdome assets, maxperts and reviews","repository":{"type":"git","url":"git+https://github.com/sharaal/ai-first-renderer-maxdome.git"},"license":"UNLICENSED","publishConfig":{"access":"public"},"scripts":{"test":"mocha --recursive"},"dependencies":{"i18n":"^0.8.3"},"devDependencies":{"mocha":"^3.4.1"},"gitHead":"868db90290af365a9d1e4a5e9927a0b15477ea83","bugs":{"url":"https://github.com/sharaal/ai-first-renderer-maxdome/issues"},"homepage":"https://github.com/sharaal/ai-first-renderer-maxdome#readme","_id":"@ai-first/renderer-maxdome@1.2.5","_shasum":"2f10ab471008a51fd0e5fd1805fb1c667ac7435e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"sharaal","email":"christoph.herrmann@maxdome.de"},"dist":{"shasum":"2f10ab471008a51fd0e5fd1805fb1c667ac7435e","tarball":"https://registry.npmjs.org/@ai-first/renderer-maxdome/-/renderer-maxdome-1.2.5.tgz","integrity":"sha512-8HpJyldGVZ+5Cq+cghtLvEFy2I7cb6FX7nc9IzTlfQmvvPuOdAdwasWTJQ8fU5kSxmezVMOkPXKAPjlgylxyDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClZdePOzx8lH0/dDH6cKkgFTZ4rsQHV/7uVjEePNUT2AIgU3rm+LularyvZAJnPbxAKffw2oPsiDo2xPRxDwebp8o="}]},"maintainers":[{"name":"sharaal","email":"christoph.herrmann@maxdome.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/renderer-maxdome-1.2.5.tgz_1495619252230_0.6625793506391346"}}},"readme":"# Usage\n\n## Simplest usage, only the asset title\n\n```javascript\nconst renderer = require('ai-renderer-maxdome');\n\nconst string = renderer({ asset }, ['title']);\n// \"Criminal Minds: Beyond Borders\"\n```\n\n## Advanced usage, tip of the day with maxpert, typed title, genres and review\n\n```javascript\nconst renderer = require('ai-renderer-maxdome');\n\nconst string = renderer({ asset }, ['tipOfTheDay', 'typedTitle']);\n// \"Tipp des Tages: Die Serie Criminal Minds: Beyond Borders\"\n```\n\n## Advanced usage, tip of the day with maxpert, typed title, genres and review\n\n```javascript\nconst renderer = require('ai-renderer-maxdome');\n\nconst string = renderer({ asset, maxpert, review }, ['tipOfTheDay', 'maxpert', 'typedTitle', 'review']);\n// \"Tipp des Tages von Felix Böhme: Die Serie Criminal Minds: Beyond Borders, Weltweit den Tätern auf der Spur\"\n```\n\n# Documentation\n\n`renderer(data, parts)`\n\n## data\n\nObject with the available data for the output (asset, maxpert, review).\n\n* Component structure (asset and maxpert as part of review)\n\n```javascript\nconst data = { \n  review: { \n    ...,\n    asset: { ... }, \n    maxpert: { ... }, \n  }, \n};\n```\n\n* Separated structure\n\n```javascript\nconst data = { \n  asset: { ... }, \n  maxpert: { ... }, \n  review: { ... }, \n};\n```\n\n## parts\n\nArray with the enabled parts for the output. The order in the array doesn't influence the output.\n\n* `description`: Description of the asset, if combined with other parts, it will be added at the end\n* `title`: Title, e.g. \"Criminal Minds: Beyond Borders\"\n* `typedTitle`: Title prefixed with the type, e.g. \"Die Serie Criminal Minds: Beyond Borders\"\n* `genres`: Comma separated genres, e.g. \", Genres: Drama, Thriller\"\n* `tipOfTheDay`: Prefix for the tip of the day, e.g. \"Tipp des Tages: \" or if maxpert is enabled \"Tipp des Tages von ${maxpert}\"\n* `maxpert`: Firstname and surname of the maxpert (only available with tipOfTheDay together), e.g. \"Felix Böhme\"\n* `review`: The headline of the review, e.g. \", Weltweit den Tätern auf der Spur\"\n","maintainers":[{"name":"sharaal","email":"christoph.herrmann@maxdome.de"}],"time":{"modified":"2022-06-12T14:25:13.966Z","created":"2017-05-23T13:03:46.665Z","1.2.4":"2017-05-23T13:03:46.665Z","1.2.5":"2017-05-24T09:47:33.209Z"},"homepage":"https://github.com/sharaal/ai-first-renderer-maxdome#readme","repository":{"type":"git","url":"git+https://github.com/sharaal/ai-first-renderer-maxdome.git"},"bugs":{"url":"https://github.com/sharaal/ai-first-renderer-maxdome/issues"},"license":"UNLICENSED","readmeFilename":"README.md"}