{"_id":"3dstojs","_rev":"13-ed5c42b818a6213d691cd351667c4f7b","name":"3dstojs","description":"nodejs module to parse 3D Studio (.3ds) files to javascript and/or JSON","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0":{"name":"3dstojs","version":"0.0.0","description":"nodejs module to parse .3ds files to js/json","main":"3ds2js.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/chrispalazzolo/3dstojs.git"},"keywords":[".3ds","nodejs","parser"],"author":{"name":"Chris Palazzolo","email":"chrisp.git@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chrispalazzolo/3dstojs/issues"},"homepage":"https://github.com/chrispalazzolo/3dstojs","_id":"3dstojs@0.0.0","dist":{"shasum":"9938db2dc36d9bdde15876ac23780f0723947332","tarball":"https://registry.npmjs.org/3dstojs/-/3dstojs-0.0.0.tgz","integrity":"sha512-bBVWtwZ04o83uiqIuFX66k9xmXfJyPAtJ+C3Kj2fvXLtCeRNWZhJJybUWiwljVYEkWnmYeCmeMKsF7tc3gAEWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMsWTBcHD1AAb0UA9t8uByDSJeVSUN/L9bRDFR7IRvUQIhALlHMdZcxMAJpy+0JVzft3j/8MeZmrXGyPIi6uIyfmuh"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"},"maintainers":[{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"}]},"0.0.1":{"name":"3dstojs","version":"0.0.1","description":"nodejs module to parse 3D Studio (.3ds) files to javascript and/or JSON","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/chrispalazzolo/3dstojs.git"},"keywords":[".3ds","nodejs","parser","binary","3d","3D Studios"],"author":{"name":"Chris Palazzolo","email":"chrisp.git@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chrispalazzolo/3dstojs/issues"},"homepage":"https://github.com/chrispalazzolo/3dstojs","_id":"3dstojs@0.0.1","dist":{"shasum":"1771b8c70c7ef85bbf980d7b05786ed332135a7a","tarball":"https://registry.npmjs.org/3dstojs/-/3dstojs-0.0.1.tgz","integrity":"sha512-jClh+NdQpBJdi5r4MNX6OAUCdCS9FIeJbN/Up5TawuPO15Qgbp0kjDjzL2wexPsD3bAVs4LwpAz6FYK5zKfgVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTMXN3u8NY3yXjmW0Ir9wKWYV3RdYi1RzE50zzMcoD8gIhAKDiIgiwlaDHNJG/p1cuzCDCCUtVGfulH/y56eXVszqO"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"},"maintainers":[{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"}]},"0.0.2":{"name":"3dstojs","version":"0.0.2","description":"nodejs module to parse 3D Studio (.3ds) files to javascript and/or JSON","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/chrispalazzolo/3dstojs.git"},"keywords":[".3ds","nodejs","parser","binary","3d","3D Studios"],"author":{"name":"Chris Palazzolo","email":"chrisp.git@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chrispalazzolo/3dstojs/issues"},"homepage":"https://github.com/chrispalazzolo/3dstojs","_id":"3dstojs@0.0.2","dist":{"shasum":"8f2a7f357c62366c88dc8f6f98dd8be2c907b558","tarball":"https://registry.npmjs.org/3dstojs/-/3dstojs-0.0.2.tgz","integrity":"sha512-2oY0kt50lBkLTTHh6VuU04HwRfLwbJgxa4kItsHkHBZhDG+5LkYFkhFUZGmEc8GkZoEnW32w2VyzzowoybJp5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlLexFcGzca1Ed0RoQFNAM5eNOyMR/7UoKkrBRgCiIRQIgU5k/3c5c6oSVgAG5RssDlCOsPqPR6OGhTPsCJvVi4JQ="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"},"maintainers":[{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"}]},"0.0.3":{"name":"3dstojs","version":"0.0.3","description":"nodejs module to parse 3D Studio (.3ds) files to javascript and/or JSON","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/chrispalazzolo/3dstojs.git"},"keywords":[".3ds","nodejs","parser","binary","3d","3D Studios"],"author":{"name":"Chris Palazzolo","email":"chrisp.git@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chrispalazzolo/3dstojs/issues"},"homepage":"https://github.com/chrispalazzolo/3dstojs","gitHead":"815a0b34443d68e2d7d7c1a6d01c04218ec620f3","_id":"3dstojs@0.0.3","_shasum":"3e1e76acd309ec4ef20ae3a095b61a43377df2a6","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.26","_npmUser":{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"},"maintainers":[{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"}],"dist":{"shasum":"3e1e76acd309ec4ef20ae3a095b61a43377df2a6","tarball":"https://registry.npmjs.org/3dstojs/-/3dstojs-0.0.3.tgz","integrity":"sha512-oSCU3Lp8uTtvkxioiCzwAhfqfRsBeGtRW5oLKf6Ny+hE50ZJS9dDOgvmHUMgd2D8I38nc+Dq1CP/myoQyhyOUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDC1Y6XbIiuyQF2c7RdRdUdcbXzC0t6Z63TOc3sf44AewIgBF2bdjkxT064sgKnPndEbCDUIpF3fVsKoeSUnKlL76I="}]}},"0.0.4":{"name":"3dstojs","version":"0.0.4","description":"nodejs module to parse 3D Studio (.3ds) files to javascript and/or JSON","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/chrispalazzolo/3dstojs.git"},"keywords":[".3ds","nodejs","parser","binary","3d","3D Studios"],"author":{"name":"Chris Palazzolo","email":"chrisp.git@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chrispalazzolo/3dstojs/issues"},"homepage":"https://github.com/chrispalazzolo/3dstojs","gitHead":"54453d3f780ff7f643cc9d2cd1c63a918ce53e77","_id":"3dstojs@0.0.4","_shasum":"32745bc9770690e36280e88a291212f70d9a3c19","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.26","_npmUser":{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"},"maintainers":[{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"}],"dist":{"shasum":"32745bc9770690e36280e88a291212f70d9a3c19","tarball":"https://registry.npmjs.org/3dstojs/-/3dstojs-0.0.4.tgz","integrity":"sha512-5Nd5UlKHbSk91y+ZOddFHOIdIW+IQJRzNyZ0G2gxpjBTTg5v8Zj3t7QIb0+xpe7N0/vfvca49F8rAO2xCSZMzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhvF0ZC4BDFe6xRD5L2QNSVopqLCzO6QZViO+gg5E/TAiBSuETxs7OimZNlQIX9DxvpDaDqHHJwhKE9xB60YLyQbA=="}]}},"0.1.0":{"name":"3dstojs","version":"0.1.0","description":"nodejs module to parse 3D Studio (.3ds) files to javascript and/or JSON","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/chrispalazzolo/3dstojs.git"},"keywords":[".3ds","nodejs","parser","binary","3d","3D Studios"],"author":{"name":"Chris Palazzolo","email":"chrisp.git@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chrispalazzolo/3dstojs/issues"},"homepage":"https://github.com/chrispalazzolo/3dstojs","gitHead":"39297343414ce859930aeedbad648014f4d6fdec","_id":"3dstojs@0.1.0","_shasum":"98b345d0f98f369799ded698ff17394f9e5e8847","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.6","_npmUser":{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"},"dist":{"shasum":"98b345d0f98f369799ded698ff17394f9e5e8847","tarball":"https://registry.npmjs.org/3dstojs/-/3dstojs-0.1.0.tgz","integrity":"sha512-Ywo7CauzEfep14g8FyMFVZjFyerRy8yVfyO/8aDJtMtfWA+GgZfXK4RFg+oaz+/l4FSYmKEGq1QZbl2AxEV9Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3RDohWyO8jib18V+9dppjGTJIYSCLIEuCEWOUMoakBAiEA7c/WZLmeVVUAuy4jgjPJYvuUITEjThctZ3BlxAEg97A="}]},"maintainers":[{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/3dstojs-0.1.0.tgz_1481090052632_0.9440386211499572"}}},"readme":"3dstojs\n=======\n\nA nodejs module to parses 3D Studio (.3ds) files to javascript or JSON.\n\nOverview\n--------\nParse 3D Studio file (.3ds) to a javascript object or JSON.\n\nOption to save the parsed data to a JSON file or break down the data to segments and save each segment to it's own JSON file (Materials, Objects/Mesh, Key Framer, etc...).\n\nDue to .3ds file specifications not being public this parse does not parse everything in a .3ds file.  To help with unknown chunks logs can be created during parsing and configured to capture unparseable to help update parsing ability.\n\nInstallation\n------------\n> npm install 3dstojs\n\nUsage:\n-------\nReturns a js object.\n```javascript\nvar parser = require(\"3dstojs\");\nvar data = parser.parse(\"C:/3d/models/sample.3ds\");\n```\nReturns a JSON string.\n```javascript\nvar parser = require(\"3dstojs\");\nvar jsonStr = parser.parseToJson(\"C:/3d/models/sample.3ds\");\n```\n\nNote: Both `parse()` and `parseToJson()` are synchronous calls\n\nMethods\n-------\nParse - Takes in a filepath and optional options object.  Returns a js objected of the parsed data. Options to save JSON and log information to a file. For options See below\n\n`parse(file, [options])`\n\nParseToJson - Takes in a filepath and optional options.  Returns a JSON string of the parsed data. Options to save JSON and log information to a file.  For Options see below.\n\n`parseToJson(file, [options])`\n\nHelp - Writes help text to the console.  Same content as what is found in the \"Options\" section below.\n\n`help()`\n\nParameters\n----------\nThese are the parameters for methods...\n\n`parse(file, options)` and `parseToJson(file, options)`\n\nfile - <string> - full path to the .3ds file.\");\noptions - <object> - flags for events such as logging, saving to JSON files, etc...\n\nOptions\n-------\nIs a js object that contains configurations for logging, saving JSON files, etc...\n\nsaveJson - `bool` (default: `false`) - flag to save parsed object to a JSON file.<br />\nsaveOptions - `object` - Contains the following properties for saving to files (JSON, log, etc...)<br />\n&nbsp;path - `string` (default: `string` directory of 3ds file.) - Location to save files.<br />\n&nbsp;jsonPerItem - `bool` (default: `false`) - Save objects as separate JSON files.<br />\n&nbsp;unparsedToFile - `bool` (default: `false`) - Saves the unparsable chunk to a file.<br />\nlogging - `bool` (default: `false`) - Creates a log file of parsing events.<br />\nlogOptions - `object` - Contains the follow flags on what is to be logged.<br />\n&nbsp;read - `bool` (default: `true`) - Logs header chunks read from the file.<br />\n&nbsp;parsing - `bool` (default: `true`) - Logs parsing of identifiable chunks.<br />\n&nbsp;unparsed - `bool` (default: `true`) - Logs identifiable ids but not enough info to parse.<br />\n&nbsp;unknown - `bool` (default: `true`) - Logs unknown chunk ids.<br />\n&nbsp;jumping - `bool` (default: `false`) - Logs any position movement in the read file.<br />\n&nbsp;files - `bool` (default: `true`) - Logs the json files saved to disk.<br />\nverbose - `bool` (default: `false`) - Prints the parsing progress and stats to the console.<br />\nverboseOptions - `object` - Contains the follow flags on what to write to the console.<br />\n&nbsp;onlyStats: `bool` (default: `false`) - Shows only the stats on completion.<br />\ntrackUnparsed - `bool` (default: `false`) - returns an object\n\nDefault Option object if the options parameter is omitted...\n```javascript\noptions = {\n  saveJson: false,\n  saveOptions:{\n    path: '<directory of 3ds file>',\n    jsonPerItem: false,\n    unparsedToFile: false\n  },\n  logging: false,\n  logOptions:{\n    read: true,\n    parsing: true,\n    unparsed: true,\n    unknown: true,\n    jumping: false,\n    files: true\n  },\n  verbose: false,\n  verboseOptions:{\n    onlyStats: false\n  },\n  trackUnparsed: false\n}\n```\n\nNotes\n-----\nSince the .3ds file format isn't publicly available this parser might not parse all data in your .3ds file.  If you feel like not all of the data in the file was parse; use the `options` parameter to help figure out what chunks were not parsed.\n\nThe best option setup for unparsed/unkown chunks:\n```javascript\nvar options = {\n  saveToJson: true,\n  saveOptions: {\n    unparsedToFile:true\n  },\n  logging: true,\n  logOptions: {\n    unparsed: true,\n    unknown: true\n  }\n}\n```\n\nLicense\n-------\nMIT\n","maintainers":[{"name":"chrispalazzolo","email":"chrisp.git@gmail.com"}],"time":{"modified":"2022-06-12T14:07:24.888Z","created":"2014-05-24T05:53:28.352Z","0.0.0":"2014-05-24T05:53:28.352Z","0.0.1":"2014-05-28T04:32:18.370Z","0.0.2":"2014-06-04T04:37:37.836Z","0.0.3":"2015-04-07T14:47:14.197Z","0.0.4":"2015-04-08T05:29:01.869Z","0.1.0":"2016-12-07T05:54:14.679Z"},"homepage":"https://github.com/chrispalazzolo/3dstojs","keywords":[".3ds","nodejs","parser","binary","3d","3D Studios"],"repository":{"type":"git","url":"git+https://github.com/chrispalazzolo/3dstojs.git"},"author":{"name":"Chris Palazzolo","email":"chrisp.git@gmail.com"},"bugs":{"url":"https://github.com/chrispalazzolo/3dstojs/issues"},"license":"MIT","readmeFilename":"README.md","users":{"chrispalazzolo":true}}