PowerShell's string module in TypeScript


We have 18 PowerShell functions so far - help us add more

Got a rainy Sunday afternoon and a taste for a porting puzzle?

  • Get inspiration from PowerShell docs.
  • Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.

We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.

Upstream Surface Inventory 18/54 shipped • 35 next 33%

Namespace-level inventory for PowerShell 7.4: what we already ship, what we may still want, and what we intentionally skip or keep.

System.String instance methods

PowerShell 7.4 · Catalog source: version-pinned source manifest https://learn.microsoft.com/dotnet/api/system.string

34% shipped
18/53 shipped 35 next 1 explicit non-goals
Shipped (18)

Next

Most System.String methods are strong plain-value portability targets.

  • chars
  • compare
  • compareordinal
  • compareto
  • concat
  • copy
  • copyto
  • create
  • empty
  • enumeraterunes
  • equals
  • format
  • getenumerator
  • gethashcode
  • getpinnablereference
  • gettypecode
  • indexofany
  • intern
  • isinterned
  • isnormalized
  • isnullorempty
  • isnullorwhitespace
  • join
  • lastindexofany
  • normalize
  • op_equality
  • op_implicit
  • op_inequality
  • replacelineendings
  • String
  • tochararray
  • tolowerinvariant
  • tostring
  • toupperinvariant
  • trycopyto
Explicit non-goals (1)
  • clone Skip Clone adds little value for immutable JS strings.

« More PowerShell functions