I have an npm for creating and parsing NFC NDEF messages. https://www.npmjs.com/package/ndef Unfortunately it's multiple files so I can't just require it on the Puck. What's the best way to make this npm compatible with the Puck?
You possibly can - although you might have size issues. In the ide, create a project. This will make a sub folder modules. Put all of your dependencies in there and the in the ide source require the top level, which should then pull in everything else....
Coincidentally there is a discussion on modules here
@Wilberforce thanks for the link. I'll work on getting this converted.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem