{"_id":"angular-slugify","_rev":"5-b7aa0de293f3449d3b69d257f69073c9","name":"angular-slugify","description":"Provides “slugification” for AngularJS in the form of a service, filter, and a directive.","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"angular-slugify","version":"1.0.1","description":"Provides “slugification” for AngularJS in the form of a service, filter, and a directive.","main":"angular-slugify.js","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/paulsmith/angular-slugify.git"},"keywords":["slug","slugs","slugify"],"author":{"name":"Paul Smith","email":"paulsmith@pobox.com"},"license":"MIT","bugs":{"url":"https://github.com/paulsmith/angular-slugify/issues"},"homepage":"https://github.com/paulsmith/angular-slugify","gitHead":"a0f0991b95a3fdafdd142cff0863b623628e4ebe","_id":"angular-slugify@1.0.1","_shasum":"8ada924de2f5e32e95e263bb1470a19e4143a612","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"linkstrifer","email":"linkstrifer@outlook.com"},"maintainers":[{"name":"linkstrifer","email":"linkstrifer@outlook.com"}],"dist":{"shasum":"8ada924de2f5e32e95e263bb1470a19e4143a612","tarball":"https://registry.npmjs.org/angular-slugify/-/angular-slugify-1.0.1.tgz","integrity":"sha512-w/afDKDpBTWNe+l8AF6h2eHuoi6hFdix1loexwL1ocD5ijPWVDpMmNuNLu+iF9iNyDWaFYWEje7LxIT5X3K7jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLlFnSO1qC9RAyMxDtPsWTM2eGX8OgKRo4JO7Ww7Wd8AiB3/Cehi+6YMLvD9PSJRD9dp/RDIWvQr7Go5qGAnxbJUg=="}]}},"1.0.2":{"name":"angular-slugify","version":"1.0.2","description":"Provides “slugification” for AngularJS in the form of a service, filter, and a directive.","main":"angular-slugify.js","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/paulsmith/angular-slugify.git"},"keywords":["slug","slugs","slugify"],"author":{"name":"Paul Smith","email":"paulsmith@pobox.com"},"license":"MIT","bugs":{"url":"https://github.com/paulsmith/angular-slugify/issues"},"homepage":"https://github.com/paulsmith/angular-slugify","gitHead":"8b3ebd66d86d194412a5765a33de636c0ca35d66","_id":"angular-slugify@1.0.2","_shasum":"309162c05dd77826235f87af6198edaf94ab31ab","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"linkstrifer","email":"linkstrifer@outlook.com"},"maintainers":[{"name":"linkstrifer","email":"linkstrifer@outlook.com"}],"dist":{"shasum":"309162c05dd77826235f87af6198edaf94ab31ab","tarball":"https://registry.npmjs.org/angular-slugify/-/angular-slugify-1.0.2.tgz","integrity":"sha512-AbQq6IRTkCObkjqspnYGT2buGo35Og4srHGfymUCY5BFheEDfZJ6D0EPV/kX186LLtKtzcR0P47WfMSekbd0lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJomuVnROZm4pk8/hMhdKvMYZz/jtssHmp8nF0a4eM5AiAGsDEU/1HuFI4VHDfNwr8yFX04IhsjZ3oCp3jznTuGrQ=="}]}},"1.0.3":{"name":"angular-slugify","version":"1.0.3","description":"Provides “slugification” for AngularJS in the form of a service, filter, and a directive.","main":"angular-slugify.js","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/paulsmith/angular-slugify.git"},"keywords":["slug","slugs","slugify"],"author":{"name":"Paul Smith","email":"paulsmith@pobox.com"},"license":"MIT","bugs":{"url":"https://github.com/paulsmith/angular-slugify/issues"},"homepage":"https://github.com/paulsmith/angular-slugify","gitHead":"c18bd1f1bfadea851c9914cc52d0ebcbe8a9e2a7","_id":"angular-slugify@1.0.3","_shasum":"3f7e0734deab7f33737145460f0cbe12f2de0d1b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"linkstrifer","email":"linkstrifer@outlook.com"},"maintainers":[{"name":"linkstrifer","email":"linkstrifer@outlook.com"}],"dist":{"shasum":"3f7e0734deab7f33737145460f0cbe12f2de0d1b","tarball":"https://registry.npmjs.org/angular-slugify/-/angular-slugify-1.0.3.tgz","integrity":"sha512-3h34dNHjzm7YCetcwDrK3wsFMJE4mgh7LTEjyou8z3gq6oFB7fzY6JsKr9qZzgagY3vqbE13QdENHxgmFYbREA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq1z0SzJtmZDOBtlmSNlTQC9WO0agxXsPa1wjrXZWjzwIgfab/ym4tBEZkYRTaAOTQtpHOIfi/WdBtwBIy3zp7r0w="}]}}},"readme":"# angular-slugify\n\nProvides “slugification” for AngularJS in the form of a service, filter, and\na directive.\n\n## What is a slug?\n\nA slug is that final portion of a URL which is derived from some other piece of\ninformation, usually the title of a page.\n\nFor example, “Man Bites Dog” might produce the slug `man-bites-dog` for the URL:\n\n`http://example.com/2013/04/man-bites-dog.html`\n\n## Demo\n\n[Click here for demo](http://paulsmith.github.io/angular-slugify/).\n\n## Usage\n\nInclude `angular-slugify.js` in your HTML document somewhere after you have set\nup AngularJS or can install it with npm\n\n`npm install angular-slugify` and add `require('angular-slugify');` to your bundle.\n\n```html\n<script src=\"angular-slugify.js\">\n```\n\nMake `slugifier` a dependency in your AngularJS app.\n\n```js\nangular.module(\"myApp\", [\"slugifier\"]);\n```\n\n### Service\n\nThe `Slug` service provides a single function `slugify` that takes a string\ninput as argument and returns the slugified string.\n\n```js\nfunction MyCtrl($scope, Slug) {\n    $scope.slugify = function(input) {\n        $scope.mySlug = Slug.slugify(input);\n    };\n}\n```\n\n### Filter\n\nThe `slugify` filter slugifies any text passed to it in an AngularJS curly-brace\nexpression.\n\n```html\n<input type=\"text\" ng-model=\"title\">\n<p>Slug: {{title | slugify}}</p>\n```\n\n### Directive\n\nThe `slug` directive is a way to declaratively say one model is the\nslugification of another.\n\n```html\n<slug from=\"post.title\" to=\"post.slug\">My slug is {{post.slug}}</slug>\n<p>It also works out here: {{post.slug}}</p>\n```\n\nThe `from` attribute is the name of the model in the current scope you want to\nslugify. The `to` attribute is the name of the model you want to be\nautomatically updated with the slugification whenever `from` changes.\n\n## Tests\n\n```bash\n$ npm -g install karma\n$ ./test/run-tests.sh\n```\n\n## License\n\nCopyright © 2013 Paul Smith <paulsmith@pobox.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","maintainers":[{"name":"linkstrifer","email":"linkstrifer@outlook.com"}],"time":{"modified":"2022-06-13T02:57:40.722Z","created":"2015-05-07T23:16:55.530Z","1.0.1":"2015-05-07T23:16:55.530Z","1.0.2":"2015-05-07T23:47:37.424Z","1.0.3":"2015-05-08T16:22:39.411Z"},"homepage":"https://github.com/paulsmith/angular-slugify","keywords":["slug","slugs","slugify"],"repository":{"type":"git","url":"https://github.com/paulsmith/angular-slugify.git"},"author":{"name":"Paul Smith","email":"paulsmith@pobox.com"},"bugs":{"url":"https://github.com/paulsmith/angular-slugify/issues"},"license":"MIT","readmeFilename":"README.md"}