nice-comment
TypeScript icon, indicating that this package has built-in type declarations

0.12.2 • Public • Published

nice-comment

test

create a nice comment.

whenever you feel like using interpolation in template literals (foo ${bar + 1} baz),
you could use ./nice-comment.ts instead.

or just use ts-dedent, idc

utils

  • joinWithDeep, combines the following:

    • joinWith
    • ifDeepArrayThenFlattenWith
  • quote

  • tick

  • quoteTick

  • tickQuote

  • bracket

  • parens

  • array

  • bullets

a few pre-combined utils that now you'd create with joinWithDeep (kept for backwards compatibility):

  • toSentence (equiv. to joinWithDeep(""))
  • toParagraph (equiv. to joinWithDeep(" ", ""))
  • toComment (equiv. to joinWithDeep("\n\n", " ", ""))

License

MIT

Package Sidebar

Install

npm i nice-comment

Weekly Downloads

0

Version

0.12.2

License

MIT

Unpacked Size

46.4 kB

Total Files

48

Last publish

Collaborators

  • kipras