Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/augbog/get-parameter
Get Parameter is a simple JavaScript module that returns query string values in JavaScript.
https://github.com/augbog/get-parameter
Last synced: 3 days ago
JSON representation
Get Parameter is a simple JavaScript module that returns query string values in JavaScript.
- Host: GitHub
- URL: https://github.com/augbog/get-parameter
- Owner: augbog
- Created: 2015-04-21T17:30:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-27T22:41:41.000Z (over 9 years ago)
- Last Synced: 2024-11-02T01:05:09.407Z (about 2 months ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Get Parameter [![npm version](https://badge.fury.io/js/get-parameter.svg)](http://badge.fury.io/js/get-parameter) [![Build Status](https://travis-ci.org/ryanburgess/get-parameter.svg?branch=master)](https://travis-ci.org/ryanburgess/get-parameter)
======Get Parameter is a simple JavaScript module that returns query string values in JavaScript.
## Install
```js
npm install get-parameter --save-dev
```## Use
```js
var getParameter = require('get-parameter');var productId = getParameter('id');
console.log(productId);// return all get queries
var getParams = getParameter();
// result example:
/* {
"id":"2",
"redirect":"true"
} */
```## Release History
* 1.0.9: Add JSHint and JSONLint to tests.
* 1.0.8: Merge [Issue #4](https://github.com/ryanburgess/get-parameter/pull/4)
* 1.0.7: Add support for IE8 and below. [Issue #3](https://github.com/ryanburgess/get-parameter/pull/3)
* 1.0.6: Add tests.
* 1.0.5: Add 'use strict' and gitignore.
* 1.0.4: Add gruntfile.
* 1.0.3: Return all get queries.
* 1.0.2: Move repo.
* 1.0.1: Small update.
* 1.0.0: Initial release.## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request## License
MIT © [Ryan Burgess](http://github.com/ryanburgess)