#!/bin/bash

export VERSION=`npm -v`

if [ "${VERSION:0:1}" -ge "2" ]
then
    export PURE_JS=true
fi

echo $PURE_JS

if [ "$PURE_JS" == "true" ]
then
    echo "PURE JS"
else
    npm install git+https://github.com/rynomad/ecc.git
fi
