Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/s-a/link.js

A tiny script to quick share page settings and configs via URL GET parms
https://github.com/s-a/link.js

Last synced: about 5 hours ago
JSON representation

A tiny script to quick share page settings and configs via URL GET parms

Awesome Lists containing this project

README

        

# link.js
[![Build Status](http://img.shields.io/travis/s-a/link.js.svg?style=flat-square)](https://travis-ci.org/s-a/link.js)
[![NPM Version](http://img.shields.io/npm/v/link.js.svg?style=flat-square)](https://www.npmjs.org/package/link.js)
[![Bower](http://img.shields.io/bower/v/link.js.svg?style=flat-square)](http://bower.io/search/?q=link.js)
[![Coverage Status](http://img.shields.io/coveralls/s-a/link.js.svg?style=flat-square)](https://coveralls.io/r/s-a/link.js?branch=master)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://s-a.mit-license.org/)

# about

link.js aims to quick share settings over pages via URL GET parms.

``` javascript
var lnk = new window.LNK({settingsGetParmName: "aaa"});
var setup = lnk.fetchSettings();
var newSetup = {
"hello" : "world"
};

console.log(setup || "no setup given.");
document.getElementById("test").href = lnk.href(newSetup);
```

# install

```npm install link.js```
```bower install link.js```