Giter VIP home page Giter VIP logo

string.ify's People

Contributors

dependabot[bot] avatar mihan007 avatar takayama-lily avatar xpl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

string.ify's Issues

Suggestion: Improve docs

I'd suggest changing your readme into reference-style documentation rather than tutorial-style. Tutorial style makes it hard to visually parse and find just what you need - you need to read the whole tutorial to figure out what's going on. Reference-style focuses on making it easy to visually parse by making it clear to the reader how to find the piece of information they need. My two cents.

`const` in output build, breaking older browsers

Hi @xpl! I love this library and ololog, however I just found out that this library, string.bullet and printable-characters pollute my webpack bundle with unwanted const, breaking IE11. I'm assuming this is a configuration error in the build process. Thanks!

Functions aren't rendered correctly

In the readme, it says functions will be rendered as valid javascript functions, but when I actually use this module, doing this: stringify({a:function(){}}) renders this: { a: <function:a> }.

question: stringification in python?

@xpl, this is great. I'm just wondering: is a tool like this available for calling within python, so that string representations like these could be generated from python dicts / objects?

I know that there is e.g. pprint, but it's not as nice---the dict keys do not get right-aligned like they do here. Thank you.

Fails to build with `react-scripts build `

Using string.ify in a create-react-app project fails the react-scripts build, because the printable-characters dependency can't be minified.

Build snippet...

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file: 

 	./node_modules/printable-characters/build/printable-characters.js:14 

Read more here: http://bit.ly/2tRViJ9

https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify

[Feature request]: Option to print without alignment.

First off, thank you for this package. Its configurability is wonderful, just what I needed. My only request is to make an option to pretty print, but without the alignment. Currently, to my knowledge, when the pretty option is on it aligns object properties, but when it's off it prints everything on a single line, so everything is clustered together and less readable. Any chance of printing on separate lines without the colon alignment?

Thanks again, I appreciate the work on this!

Output gets mangled if objects contain long keys

If you try to pretty print an object with long keys the output will be garbled because it becomes far too wide for the terminal. An improvement would be to detect long keys and then truncate/wrap them with a setting to configure the length.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.