Gathering detailed insights and metrics for angular-slugify
Gathering detailed insights and metrics for angular-slugify
Gathering detailed insights and metrics for angular-slugify
Gathering detailed insights and metrics for angular-slugify
npm install angular-slugify
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
197 Stars
27 Commits
65 Forks
6 Watching
2 Branches
6 Contributors
Updated on 23 Sept 2024
JavaScript (89.74%)
Shell (10.26%)
Cumulative downloads
Total Downloads
Last day
-10.8%
182
Compared to previous day
Last week
-27.8%
964
Compared to previous week
Last month
9.8%
5,560
Compared to previous month
Last year
-2.6%
64,368
Compared to previous year
No dependencies detected.
Provides “slugification” for AngularJS in the form of a service, filter, and a directive.
A slug is that final portion of a URL which is derived from some other piece of information, usually the title of a page.
For example, “Man Bites Dog” might produce the slug man-bites-dog
for the URL:
http://example.com/2013/04/man-bites-dog.html
Include angular-slugify.js
in your HTML document somewhere after you have set
up AngularJS.
1<script src="angular-slugify.js">
Make slugifier
a dependency in your AngularJS app.
1angular.module("myApp", ["slugifier"]);
The Slug
service provides a single function slugify
that takes a string
input as argument and returns the slugified string.
1function MyCtrl($scope, Slug) { 2 $scope.slugify = function(input) { 3 $scope.mySlug = Slug.slugify(input); 4 }; 5}
The slugify
filter slugifies any text passed to it in an AngularJS curly-brace
expression.
1<input type="text" ng-model="title"> 2<p>Slug: {{title | slugify}}</p>
The slug
directive is a way to declaratively say one model is the
slugification of another.
1<slug from="post.title" to="post.slug">My slug is {{post.slug}}</slug> 2<p>It also works out here: {{post.slug}}</p>
The from
attribute is the name of the model in the current scope you want to
slugify. The to
attribute is the name of the model you want to be
automatically updated with the slugification whenever from
changes.
1$ npm test
Copyright © 2013 Paul Smith paulsmith@pobox.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 5/27 approved changesets -- score normalized to 1
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More