npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

advance-formatter

v0.5.3

Published

Format string in a easy way

Downloads

2

Readme

advance-formatter

Format string in a easy way.

Limitations

  1. Using character | in formatter will cause it to break unexpectedly.
  2. We cannot use many characters in formatter inside string.

Task

Basics

  1. White spaces in formatter should not matter. [x]
  2. Should have option to add bracket opening brackets {{ and closing brackets }}
  3. Systematic ways to handle undefined. [x]
  4. Format different structure like array, objects. [x]
  5. Abstract methods and object properties. [x]
  6. Use string directly into formatter. [x]
  7. Find current limitations.
  8. Add proper test cases.
  9. Npm package [x]
  10. Appropriate Examples

Good to have

  1. Tag system
    1. Add option for tags to group pipelines and data.
    2. Tags will have priority
    3. Tags will option to activate or deactivate
  2. Cloning formatter
  3. Add strict mode.

Advance

  1. Conditionals pipe. [x]
    1. Discuss on what is treated as present in conditionals value, i.e. pipe ternary
  2. Save result of an operation and reuse it.
  3. Easy way to easily compose multiple pipes.
  4. Functional programming approach.

Discussion around

  1. Handle singular and plural forms of words. [x]
  2. Default values. [x]
    1. Discuss on what is treated as present in default value, i.e. pipe present
  3. Send parameter to pipe. [x]
  4. How to send named parameter in pipes?
  5. Way to work it with react.
    1. How to make certain part of text bold?
    2. How to add line break somewhere?
  6. Should number be part of value. Ideally it should be non-empty-string | "" | undefined
  7. How to prase text in formatter which have character of | in it?