JSON API Linker
This module allows link manipulation within JSON API documents. It expects to work with valid JSON API objects, so review the spec before using this module.
Usage
var linker = ; var doc = linker;/**{ links: { self: 'http://public-url.example.com/things/1' }, // ...}*/
You may also designate a prefix to remove from the original string, e.g.:
var doc = linker;/**{ links: { self: 'http://public-url.example.com/things/1' }, // ...}*/