Skip to content

Commit

Permalink
docs(obj-deserializer): corrected example in README
Browse files Browse the repository at this point in the history
Previous example code did not work and has been changed to now work.
  • Loading branch information
abetusk committed Jul 14, 2024
1 parent 01ceae8 commit baad57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/io/obj-deserializer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ npm install @jscad/obj-deserializer
const objDeserializer = require('@jscad/obj-deserializer')

const rawData = fs.readFileSync('PATH/TO/file.obj')
const geometries = objDeserializer.deserialize(rawData, 'file.obj', {output: 'geometry'})
const geometries = objDeserializer.deserialize({output: 'geometry'}, rawData.toString())

```

Expand Down

0 comments on commit baad57b

Please sign in to comment.