1.3.0 • Published 9 years ago

snack-string v1.3.0

Weekly downloads
10
License
Apache-2.0
Repository
github
Last release
9 years ago

Build Status Code Coverage NPM Repo License

snack-string

Generic string functional library for javascript/node.js

Installation

npm install snack-string

Example

var string = require('snack-string');

console.log(string.startsWith('abc', 'a'));

APIs

  • addEnd
  • addStart
  • after
  • afterLast
  • before
  • beforeLast
  • between
  • camelize
  • capitalize
  • classify
  • contains
  • dasherize
  • decapitalize
  • endsWith
  • escapeHTML
  • format
  • hashCode
  • interpolate
  • isBlank
  • isEmpty
  • lines
  • pad
  • padLeft
  • padRight
  • randomString
  • randomNumber
  • randomHex
  • randomBase62
  • removeChars
  • removeEnd
  • removeStart
  • repeat
  • slugify
  • startsWith
  • toCharArray
  • toString
  • template
  • truncate
  • unescapeHTML

License

Released under the Apache 2 License.

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago