alexei / sprintf.js

sprintf.js is a complete open source JavaScript sprintf implementation
BSD 3-Clause "New" or "Revised" License
2.11k stars 291 forks source link

ES6 class support #158

Closed borela closed 6 years ago

borela commented 6 years ago

Implements #157

Classes are converted to string as:

[class NameOfTheClass]

And instances as:

[instance NameOfTheClass]

alexei commented 6 years ago

I'm sorry, but this feature is beyond the scope of this project. Looks like a very opinionated way of string-representing things. And String(new NameOfTheClass()) should be whatever (new NameOfTheClass()).toString() returns, not [instance NameOfTheClass]

borela commented 6 years ago

Ok then.