lib/npm.js
function publishedVers(name) {
        var _child$spawnSync = _child_process2['default'].spawnSync(npmCommand, ['view', name, 'versions', '--json']);

        var stdout = _child$spawnSync.stdout;
        var error = _child$spawnSync.error;

        if (error) throw error;

        return JSON.parse(stdout.toString());
    }
function publishedVers(name) {
        var _child$spawnSync = _child_process2['default'].spawnSync(npmCommand, ['view', name, 'versions', '--json']);

        var stdout = _child$spawnSync.stdout;
        var error = _child$spawnSync.error;

        if (error) throw error;

        return JSON.parse(stdout.toString());
    }
function publishedVers ( name ) { var _child$spawnSync = _child_process2 [ 'default' ] . spawnSync ( npmCommand , [ 'view' , name , 'versions' , '--json' ] ) ; var stdout = _child$spawnSync . stdout ; var error = _child$spawnSync . error ; if ( error ) throw error ; return JSON . parse ( stdout . toString ( ) ) ; }
get published versions via npm

@param {String} [name] published package name
@return {Array} versions
@public
get published versions via npm