0

More specifically, I'm looking to serialize plist's from string data within a node.js process and send them in a request.

For example:

var data = [CPPropertyListSerialization dataFromPropertyList:dict format:CPPropertyListXMLFormat_v1_0 errorDescription:errorString];

Narwhal has a module for this . I was just wondering if someone had done the same for node.js.

pnitsch
  • 1
  • 1

2 Answers2

1

Your title is a bit confusing, in case you want to load .plist files as JavaScript Objects you could take a look at the the node-plist module.

I tried to install it via npm but one of its dependencies needs some additional stuff in order to compile. You should take a look at the README of libxmljs and make sure you got everything that's required installed before installing it via npm.

Ivo Wetzel
  • 46,459
  • 16
  • 98
  • 112
  • @pnitsch OK, then the only way I can imagine getting this to work is writing your own C++ extension which calls the ObjC code and wraps it for JavaScript. – Ivo Wetzel Jan 12 '11 at 20:44
0

check out https://bitbucket.org/clbruno/objj-node