Noncommital Premarital Mischief
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    get-jsonpublic

    get-json

    Cross-platform library for getting JSON documents. Wraps request on Node, fallsback to JSONP on browsers.

    $ npm install get-json

    Usage

    var getJSON = require('get-json')
     
    getJSON('http://api.listenparadise.org', function(error, response){
     
        error
        // undefined 
     
        response.result
        // ["Beth Orton — Stolen Car", 
        // "Jack White — Temporary Ground", 
        // "I Am Kloot — Loch", 
        // "Portishead — Glory Box"] 
     
        response.ok
        // => true 
     
    })

    Keywords

    none

    install

    npm i get-json

    Downloadsweekly downloads

    1,055

    version

    1.0.0

    license

    BSD

    repository

    github.com

    last publish

    collaborators

    • avatar