New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

parameterize

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parameterize - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json

@@ -17,3 +17,3 @@ {

],
"version": "0.0.1",
"version": "0.0.2",
"repository": {

@@ -20,0 +20,0 @@ "type": "git",

node-parameterize
=================
parameterize.js
parameterize.js is a port of django admin [urlify.js](https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/urlify.js)
Using with express.js
Using in express.js 3 view files as view helper
--------------------------------
paste in app.configure in app.js before app.use(app.router)
require
--------------------------------
```javascript
var parameterize = require('parameterize');
```
app.configure
--------------------------------
```javascript
app.use(function(req, res, next) {
res.locals.parameterize = parameterize
next();
});
app.use(app.router);
```
using with jade template engine
----
index.jade
```html
#{parameterize('parameterized url with special characters, öçıŞÇ')}
// parameterized-url-with-special-characters-ocisc
```
using with ejs template engine
---
index.exjs
```html
<% parameterize('parameterized url with special characters, öçıŞÇ') %>
// parameterized-url-with-special-characters-ocisc
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc