Skip to content
This repository was archived by the owner on Jul 23, 2021. It is now read-only.

goodeggs/ng-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-string

An angularjs factory and set of filters encapsulating the awesome string.js library.

Comes with a factory called string:

myApp = angular.module('myapp', ['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.

About

An angular module for string manipulation. Encapsulates the awesome string.js library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors