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.

Add support for object output

See original GitHub issue

Hey, great library!

I’m about to release a new <svg-icon> library where I recommend and show how to use this library.

In my library, we expect to get an object where the key is the icon name, and the value is the content:

{
  settings: 'svg...'
}

Currently, I expose a function helper that’ll make it work with your library:

import * as icons from '../assets/svg/my-icons.model';

SvgIconsModule.forRoot({
  icons: fromSvgProps(icons)
});

Do you think you can add this option as a built-in feature?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
NetanelBasalcommented, Jun 16, 2020

I added in the README a recommended flow with your library.

1reaction
NetanelBasalcommented, Jun 16, 2020

I also think the default delimiter should be camelCase. This is the standard.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for passing objects for output to console. · Issue #12
I just wanted to raise a request to add support for logging objects/vars as well as messages. Myself and colleagues usually output a...
Read more >
ObjectOutputStream (Java Platform SE 7 ) - Oracle Help Center
An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream. The objects can be read (reconstituted) using an ...
Read more >
Object.assign() - JavaScript - MDN Web Docs
The Object.assign() method copies all enumerable own properties from one or more source objects to a target object.
Read more >
ObjectOutputStream in Java - write Object to File - DigitalOcean
When we create an instance of ObjectOutputStream, we have to provide the OutputStream to be used. This OutputStream is further used by ...
Read more >
Format-Table (Microsoft.PowerShell.Utility)
The Format-Table cmdlet formats the output of a command as a table with the selected properties of the object in each column. The...
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