question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Read name from package.json and populate title by default

See original GitHub issue

Feature Request

It would be nice if the “MyDoc” title defaulted to the name property inside package.json

Describe the solution you’d like

Read package.json name and populate title

Describe alternatives you’ve considered

Maybe creating a theme that does this? 🤔

Teachability, Documentation, Adoption, Migration Strategy

the config file and other ways to set the title should overwrite this, reading name from package.json should probably only be done if there’s no title configured. This would make it more zero-config than it is right now.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
albinekbcommented, Jun 13, 2018

Maybe we could send the whole package.json to the theme in some way, maybe a helper to fetch it in some way. If we could do that themes could use data from package.json to display version, name (with or without humanise), pick up repository to automatically link to GitHub etc

1reaction
pedronauckcommented, Jul 3, 2018

Released in the new v0.5.0 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

package.json - npm Docs
Description. This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just...
Read more >
Getting name property from package.json with NodeJS
I had a similar issue. As a solution, you should add a custom typing i.e. json-loader.d.ts with the content declare module "*.json" {...
Read more >
package.json | pnpm
For instance, the following package.json in a workspace will create a symlink to button in the node_modules directory of card : { "name":...
Read more >
Manifest (package.json) - Deskpro Apps
This is what administrators will see when installing and configuring the app; and by default, this title that is displayed in the title...
Read more >
The MERN stack tutorial - LogRocket Blog
Learn all about the MERN stack in this step-by-step guide on how to use it by developing a simple CRUD application from scratch....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found