Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Da99's helper methods for strings in javascript.
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
node_modules
src
test
README.md
package.json

README.md

string_da99

My helper functions for strings.

Install & Use

In your shell:

npm install string_da99

In your CoffeeScript:

Str = require 'string_da99'

"\n".is_whitespace() # ---> true
" a ".strip()        # --> "a"
"".is_empty()        # --> true
"A b c.".remove_end( '.' ) # --> "A b c"

"Shutdown the govt schools.".whitespace_split()
# -> [ "Shutdown", "the", "govt", "schools." ]

"  a\n  b\n  c".remove_indentation()
# -> "a\nb\nc"
Something went wrong with that request. Please try again.