fit-file-parser 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/dictionaries/dimtrioskanellopoulos.xml +7 -0
- package/.idea/easy-fit.iml +14 -0
- package/.idea/encodings.xml +4 -0
- package/.idea/inspectionProfiles/Project_Default.xml +62 -0
- package/.idea/misc.xml +7 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +589 -0
- package/CHANGELOG.md +38 -0
- package/CONTRIBUTORS.md +7 -0
- package/LICENSE +23 -0
- package/README.md +91 -0
- package/dist/binary.js +440 -0
- package/dist/fit-parser.js +266 -0
- package/dist/fit.js +4265 -0
- package/dist/messages.js +23 -0
- package/package.json +72 -0
package/dist/messages.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getFitMessage = getFitMessage;
|
|
7
|
+
exports.getFitMessageBaseType = getFitMessageBaseType;
|
|
8
|
+
|
|
9
|
+
var _fit = require('./fit');
|
|
10
|
+
|
|
11
|
+
function getFitMessage(messageNum) {
|
|
12
|
+
return {
|
|
13
|
+
name: (0, _fit.getMessageName)(messageNum),
|
|
14
|
+
getAttributes: function getAttributes(fieldNum) {
|
|
15
|
+
return (0, _fit.getFieldObject)(fieldNum, messageNum);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// TODO
|
|
21
|
+
function getFitMessageBaseType(foo) {
|
|
22
|
+
return foo;
|
|
23
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": {
|
|
3
|
+
"name": "jimmykane"
|
|
4
|
+
},
|
|
5
|
+
"bugs": {
|
|
6
|
+
"url": "https://github.com/jimmykane/fit-parser"
|
|
7
|
+
},
|
|
8
|
+
"contributors": [
|
|
9
|
+
{
|
|
10
|
+
"email": "jimmykane9@gmail.com",
|
|
11
|
+
"name": "Dimitrios Kanellopoulos"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"description": "Parse your .FIT files easily, directly from JS (Garmin, Polar, Suunto)",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@babel/core": "^7.4.4",
|
|
17
|
+
"@babel/preset-env": "^7.4.4",
|
|
18
|
+
"babel": "^6.3.26",
|
|
19
|
+
"babel-core": "^6.26.3",
|
|
20
|
+
"babel-polyfill": "^6.26.0",
|
|
21
|
+
"babel-preset-env": "^1.7.0",
|
|
22
|
+
"babel-preset-es2015": "^6.24.1",
|
|
23
|
+
"babel-preset-stage-2": "^6.24.1",
|
|
24
|
+
"babel-register": "^6.26.0",
|
|
25
|
+
"chai": "^3.4.1",
|
|
26
|
+
"del": "^2.2.0",
|
|
27
|
+
"eslint": "^2.8.0",
|
|
28
|
+
"eslint-config-airbnb": "^8.0.0",
|
|
29
|
+
"eslint-plugin-import": "^1.6.1",
|
|
30
|
+
"gulp": "^3.9.1",
|
|
31
|
+
"gulp-babel": "^6.1.3",
|
|
32
|
+
"gulp-jshint": "^2.1.0",
|
|
33
|
+
"gulp-mocha": "^2.2.0",
|
|
34
|
+
"jshint": "^2.10.2",
|
|
35
|
+
"mocha": "^2.3.4",
|
|
36
|
+
"run-sequence": "^1.1.5"
|
|
37
|
+
},
|
|
38
|
+
"directories": {},
|
|
39
|
+
"engine": "node >= 0.10.x",
|
|
40
|
+
"homepage": "https://github.com/jimmykane/fit-parser",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"fit",
|
|
43
|
+
"ant",
|
|
44
|
+
"garmin",
|
|
45
|
+
"parse"
|
|
46
|
+
],
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"main": "dist/fit-parser.js",
|
|
49
|
+
"maintainers": [
|
|
50
|
+
{
|
|
51
|
+
"email": "jimmykane9@gmail.com",
|
|
52
|
+
"name": "Dimitrios Kanellopoulos"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"name": "fit-file-parser",
|
|
56
|
+
"optionalDependencies": {},
|
|
57
|
+
"private": false,
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git+ssh://git@github.com/jimmykane/fit-parser.git"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"example-output": "node_modules/gulp/bin/gulp.js; node examples/example.js examples/example.fit > examples/output.json",
|
|
64
|
+
"example": "node_modules/gulp/bin/gulp.js; node examples/example.js examples/example.fit",
|
|
65
|
+
"test": "node_modules/gulp/bin/gulp.js;",
|
|
66
|
+
"build": "node_modules/gulp/bin/gulp.js babel"
|
|
67
|
+
},
|
|
68
|
+
"version": "1.9.1",
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"buffer": "^5.1.0"
|
|
71
|
+
}
|
|
72
|
+
}
|