This package has been deprecated

Author message:

[DEPRECATED] - This package has been moved to @hashicorp/nextjs-scripts. See https://github.com/hashicorp/nextjs-scripts/pull/124 for details.This package is deprecated, and will no longer be maintained. Please check the hashicorp/react-components repository for a list of maintained packages, and file an issue if you need a replacement for this package.

@hashicorp/js-utils

1.0.10 • Public • Published

js-utils

A collection of js utility functions that can be shared amongst components.


capitalize(string)

Captitalize the first letter of a string.

  • string (string) - The string to be capitalized

eliminateOrphans(string, count)

Eliminate orphans from the end of a string by replacing spaces with  .

  • string (string) - The string to be de-orphaned
  • count (string) [optional] - Total char count from end of string in which to replace spaces (defaults to 12)

Readme

Keywords

none

Package Sidebar

Install

npm i @hashicorp/js-utils

Weekly Downloads

3,027

Version

1.0.10

License

MPL-2.0

Unpacked Size

24 kB

Total Files

7

Last publish

Collaborators

  • abhishek-hashicorp
  • dstaley
  • cameronperera
  • alexju
  • consul-ui-services
  • wenincode-hashicorp
  • hashicb
  • britt.lindgren
  • paulhcp
  • nandereck
  • tstormk
  • hashibot-hds
  • lackeyjb1
  • youriwims
  • jpogran
  • _natmegs
  • thrashr888
  • melsumner
  • mwickett
  • didoo
  • zchsh
  • hcitsec
  • gregone
  • meirish
  • enmod
  • kaxcode
  • anubhavmishra-hashicorp
  • hashibot-web
  • cstitt-hashi
  • kstraut
  • mocohen
  • dhaulagiri