dorukeker / gyronorm.js

JavaScript project for accessing and normalizing the accelerometer and gyroscope data on mobile devices
MIT License
641 stars 65 forks source link

Error in readme (2.0.6, NPM) #41

Closed mode777 closed 7 years ago

mode777 commented 7 years ago

I installed 2.0.6 via npm.

Readme says: var GyroNorm = require('gyronorm').GyroNorm; This is actually undefined. What it should say is: var GyroNorm = require('gyronorm');

Tested with Node 7.9.0

I don't know if this is a bug, because it is quite unusual to directly export the constructor

dorukeker commented 7 years ago

@mode777 I am not very familiar using AMD / CommonJS. So I take your word and update it :)