https://github.com/calvinjuarez/less-plugin-urlencode
Simple URL Encode Function for Less
https://github.com/calvinjuarez/less-plugin-urlencode
css less less-plugin plugin
Last synced: 3 months ago
JSON representation
Simple URL Encode Function for Less
- Host: GitHub
- URL: https://github.com/calvinjuarez/less-plugin-urlencode
- Owner: calvinjuarez
- Created: 2016-07-07T01:08:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-07T01:17:13.000Z (almost 9 years ago)
- Last Synced: 2025-01-06T09:23:12.772Z (5 months ago)
- Topics: css, less, less-plugin, plugin
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# less-plugin-urlencode
Simple URL Encode Function for Less## Installation
Put the _`urlencode.less.js`_ file in your project and include the following in your Less file:
```less
@plugin 'path/to/urlencode.less.js';
```Then you can use the `urlencode()` function anywhere.
## Use
`urlencode()` accepts a string which it will return, unquoted and URL encoded (using JavaScript's [`encodeURIComponent()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent "encodeURIComponent() - JavaScript | MDN")).