Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
angular-capitalize-filter
Advanced tools
AngularJS filter to capitalize sentences and specially team names.
Weekly downloads
Readme
AngularJS filter to capitalize sentences and specially team names.
You can install the filter using Bower:
$ bower install angular-capitalize-filter
Or npm:
$ npm install angular-capitalize-filter
Then you have to include it in your HTML:
<script src="bower_components/angular-capitalize-filter/capitalize.js"></script>
<script src="node_modules/angular-capitalize-filter/capitalize.js"></script>
And inject the module angular-capitalize-filter
as a dependency in your application:
angular.module('webApp', ['puigcerber.capitalize']);
You can use it like any other AngularJS filter:
<p>{{ input | capitalize:format:separator }}</p>
The format and separator are optional parameters. If not specified all the words are capitalized.
Available formats:
It capitalizes all the words of a given sentence. As it's the default format you can omit the parameter.
<p>{{ sentence | capitalize:'all' }}</p>
It capitalizes just the first letter of the given sentence.
<p>{{ sentence | capitalize:'first' }}</p>
Specially adapted for team names, with uppercase abbreviation.
<p>{{ teamName | capitalize:'team' }}</p>
It formats the team name as CD Logroñés, FC Barcelona or Valencia CF.
By default the words in a sentence are separated by the space character. But any other character can be specified as a separator so we can humanize our output.
<p>{{ underscored_sentence | capitalize:'all':'_' }}</p>
FAQs
AngularJS filter to capitalize sentences and specially team names.
The npm package angular-capitalize-filter receives a total of 379 weekly downloads. As such, angular-capitalize-filter popularity was classified as not popular.
We found that angular-capitalize-filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.