Closed Dexus closed 10 years ago
btw i use node v0.10.26
Which module version do you have installed? Anyway, you must not call the parse()
function with partial streaming data, that is, the parse()
function must receive the whole data to parse, otherwise the final object won't be what you expect.
Why do you need to store config data in a redis instance? Configuration files like .properties are normally stored in a simple file and read back using a single readFile()
call because they tend to be small: 1-2KB.
I have plans to implement a new native module with a streaming interface, just for parsing .properties files more faster.
Hey, i have the latest version from npm installed 1 h ago.
It is a module for Postfix that i code to limit outgoing mails. For now its only a prototype to test the speed agains Perl. And i'm currently faster than perl for now.
the data send via a socket, so the format ist pretty key=value
each line. and this module works perfekt to parse it. Okay it is maybe a littlebit overhead to use it but for trying its ok.
no i dont have the error anymore, have found my issue in an other function, witch called befor, and overwrites the module variable. -_-'
But thank you for your fast replay.
I use this code... in function
parseData()
i get the error[TypeError: Object #<Object> has no method 'parse']
i have install the module as global module. And than run this script. but cant parse the data i get... :(