ng-string

An angular module for string manipulation. Encapsulates the awesome npm string package.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ng-string
1320.1.09 years ago9 years agoMinified + gzip package size for ng-string in KB

Readme

ng-string
An angularjs factory and set of filters encapsulating the awesome string.js library.
Comes with a factory called string:
function AwesomeCtrl($scope, string) {
  string('foobar').chompLeft('foo').s; // 'bar'
}

... and a set of filters matching the string.js operations:
{{mystring = 'this is a string'}}
{{mystring|stringCamelize}} becomes 'thisIsAString'
{{mystring|stringCapitalize}} becomes 'This is a string'
{{mystring|stringChompLeft:'string'}} becomes 'this is a '
{{mystring|stringChompRight:'this'}} becomes ' is a string'

etc, etc (more documentation at http://stringjs.com/)

Contributing

npm install
npm test

License

MIT.