{"_id":"nonogo","_rev":"7-5e187b603a721e2e726ecd5d146ff21d","name":"nonogo","description":"Document-based database designed for and written in Node.js","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.5":{"name":"nonogo","author":{"name":"Julio Jimenez","email":"ak4vl.qrp@gmail.com"},"description":"Document-based database designed for and written in Node.js","version":"0.0.5","main":"nonogo.js","readme":"# nonogo v0.0.5\n\t\t \n## Description\n\nnonogo is a document-based database designed for and written in node.js\n\n## Installation\n\n\tnpm install nonogo\n\n## Usage\n\nSo let's get down to the nitty gritty.  Here are the functions you need to know to use nonogo.\n\n### nonogo.open(path, cryptoFlag, cryptoAlgo, cryptoKey, callback)\n\nOpens a nonogo database file, or creates it if it doesn't exist. Callback is given two arguments, error and collection.\n\nA word on cryptography...cryptoFlag determines whether the database will be encrypted or plain text. cryptoAlgo is the algorithm to be used for encryption/decryption, usually dictated by algorithms supported by OpenSSL. cryptoKey is the key/password to be used in the encryption/decryption, do not lose or forget this, 'cause there is no way of getting it back, well...I'm sure there is :-)\n\n##### Example:\n\t\n\tnonogo.open('nonogodb', '1', 'RC4', 'asdf', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### The Collection Object\n\nOK, before we move any futher, let's go over this collection object.  You really don't even have to name it 'collection', I usually just name it 'd'.\n\nYou can use the collection object just as you would any JSON object.  Google 'json' if you haven't used it, you'll be up to speed in like 3 minutes, trust me.\n\nHere's an example for referring to the 'name' field in the 60th row of the 'People' key.  \n\nGiven that the collection object is named 'data'...\n\n\tvar name = data.People[59].name;\n\t\nor,\n\n\tvar name = data['People'][59]['name'];\n\t\nThis allows you to create all kinds of iterations in order to find data.  This is something that will be included in version 0.1.0.\n\nMoving on...\n\n---\n\n### nonogo.addRow(key, value, callback)\n\nAdds a row to a key. If the key does not exist it is created.  If null is passed as the key name, one will be generated for you.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.addRow('People', {name:'Julio', age:'30'}, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\n---\n\n### nonogo.addField(key, index, field, value, callback)\n\nAdds a field to a row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.addField('People', 59, sex, 'male', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.editRow(key, index, value, callback)\n\nEdits an entire row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.editRow('People', 59, {name:'Sara', age:'31'}, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.editField(key, index, field, value, callback)\n\nEdits a single field.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.editField('People', 59, sex, 'female', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteKey(key, callback)\n\nDeletes an entire key.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteKey('People', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteRow(key, index, callback)\n\nDeletes an entire row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteRow('People', 59, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\n---\n\n### nonogo.deleteField(key, index, field, callback)\n\nDeletes a single field.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteField('People', 59, 'name', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteAll(callback)\n\nDeletes entire database.  Callback is given one argument, error.\n\n##### Example:\n\t\n\tnonogo.deleteAll(function(error) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.commit(callback)\n\nCommits changes to the collection object to database file.  Callback is given one argument, error.\n\n##### Example:\n\t\n\tnonogo.commit(function(error) {\n\t\t// Do stuff with collection.\n\t});\n\n\n\n","readmeFilename":"readme.md","_id":"nonogo@0.0.5","dist":{"shasum":"b775bc8afbb91948bb9b4405e758eb16b765e0dd","tarball":"https://registry.npmjs.org/nonogo/-/nonogo-0.0.5.tgz","integrity":"sha512-9mQqFDN60k/8cu1d8tzuYHmfw6Fv+0EEjoAMwQf1j8nMZndS3uMYulOqOimQeHkpBgN0DBoos7xEN+w+NumUnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgfMYiUa9ifRtU2DE3t7CwEZvMjyeaT+ymz5y0lNG5GAiBqbwmipsHwb+vJWZ58CouTKAy63nNU2fbHg0mFTUogLQ=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"ak4vl","email":"ak4vl.qrp@gmail.com"},"maintainers":[{"name":"ak4vl","email":"ak4vl.qrp@gmail.com"}]},"0.0.6":{"name":"nonogo","author":{"name":"Julio Jimenez","email":"ak4vl.qrp@gmail.com"},"description":"Document-based database designed for and written in Node.js","version":"0.0.6","main":"nonogo.js","readme":"# nonogo v0.0.5\n\t\t \n## Description\n\nnonogo is a document-based database designed for and written in node.js\n\n## Installation\n\n\tnpm install nonogo\n\n## Usage\n\nSo let's get down to the nitty gritty.  Here are the functions you need to know to use nonogo.\n\n### nonogo.open(path, cryptoFlag, cryptoAlgo, cryptoKey, callback)\n\nOpens a nonogo database file, or creates it if it doesn't exist. Callback is given two arguments, error and collection.\n\nA word on cryptography...cryptoFlag determines whether the database will be encrypted or plain text. cryptoAlgo is the algorithm to be used for encryption/decryption, usually dictated by algorithms supported by OpenSSL. cryptoKey is the key/password to be used in the encryption/decryption, do not lose or forget this, 'cause there is no way of getting it back, well...I'm sure there is :-)\n\n##### Example:\n\t\n\tnonogo.open('nonogodb', '1', 'RC4', 'asdf', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### The Collection Object\n\nOK, before we move any futher, let's go over this collection object.  You really don't even have to name it 'collection', I usually just name it 'd'.\n\nYou can use the collection object just as you would any JSON object.  Google 'json' if you haven't used it, you'll be up to speed in like 3 minutes, trust me.\n\nHere's an example for referring to the 'name' field in the 60th row of the 'People' key.  \n\nGiven that the collection object is named 'data'...\n\n\tvar name = data.People[59].name;\n\t\nor,\n\n\tvar name = data['People'][59]['name'];\n\t\nThis allows you to create all kinds of iterations in order to find data.  This is something that will be included in version 0.1.0.\n\nMoving on...\n\n---\n\n### nonogo.addRow(key, value, callback)\n\nAdds a row to a key. If the key does not exist it is created.  If null is passed as the key name, one will be generated for you.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.addRow('People', {name:'Julio', age:'30'}, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\n---\n\n### nonogo.addField(key, index, field, value, callback)\n\nAdds a field to a row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.addField('People', 59, sex, 'male', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.editRow(key, index, value, callback)\n\nEdits an entire row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.editRow('People', 59, {name:'Sara', age:'31'}, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.editField(key, index, field, value, callback)\n\nEdits a single field.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.editField('People', 59, sex, 'female', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteKey(key, callback)\n\nDeletes an entire key.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteKey('People', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteRow(key, index, callback)\n\nDeletes an entire row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteRow('People', 59, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\n---\n\n### nonogo.deleteField(key, index, field, callback)\n\nDeletes a single field.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteField('People', 59, 'name', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteAll(callback)\n\nDeletes entire database.  Callback is given one argument, error.\n\n##### Example:\n\t\n\tnonogo.deleteAll(function(error) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.commit(callback)\n\nCommits changes to the collection object to database file.  Callback is given one argument, error.\n\n##### Example:\n\t\n\tnonogo.commit(function(error) {\n\t\t// Do stuff with collection.\n\t});\n\n\n\n","readmeFilename":"readme.md","_id":"nonogo@0.0.6","dist":{"shasum":"198f7177642d9869d389d8617d85124d1af44e81","tarball":"https://registry.npmjs.org/nonogo/-/nonogo-0.0.6.tgz","integrity":"sha512-QIy8S/zJd3imjZw36oVEKFP9w0PfZwzlyC4+tyLGH98wN/ZawZneubPPLg+9KpBnRX23PFoqcA6ppHAdIAZF7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPw0RaT86/kN02dTQNGgO2rOU+cDe3+plMdahsVJ8J9AiEAx9joD5Hk5puzEJeJ0fe5cosvfCYeHL51AUw4PZoajO0="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"ak4vl","email":"ak4vl.qrp@gmail.com"},"maintainers":[{"name":"ak4vl","email":"ak4vl.qrp@gmail.com"}]}},"readme":"# nonogo v0.0.5\n\t\t \n## Description\n\nnonogo is a document-based database designed for and written in node.js\n\n## Installation\n\n\tnpm install nonogo\n\n## Usage\n\nSo let's get down to the nitty gritty.  Here are the functions you need to know to use nonogo.\n\n### nonogo.open(path, cryptoFlag, cryptoAlgo, cryptoKey, callback)\n\nOpens a nonogo database file, or creates it if it doesn't exist. Callback is given two arguments, error and collection.\n\nA word on cryptography...cryptoFlag determines whether the database will be encrypted or plain text. cryptoAlgo is the algorithm to be used for encryption/decryption, usually dictated by algorithms supported by OpenSSL. cryptoKey is the key/password to be used in the encryption/decryption, do not lose or forget this, 'cause there is no way of getting it back, well...I'm sure there is :-)\n\n##### Example:\n\t\n\tnonogo.open('nonogodb', '1', 'RC4', 'asdf', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### The Collection Object\n\nOK, before we move any futher, let's go over this collection object.  You really don't even have to name it 'collection', I usually just name it 'd'.\n\nYou can use the collection object just as you would any JSON object.  Google 'json' if you haven't used it, you'll be up to speed in like 3 minutes, trust me.\n\nHere's an example for referring to the 'name' field in the 60th row of the 'People' key.  \n\nGiven that the collection object is named 'data'...\n\n\tvar name = data.People[59].name;\n\t\nor,\n\n\tvar name = data['People'][59]['name'];\n\t\nThis allows you to create all kinds of iterations in order to find data.  This is something that will be included in version 0.1.0.\n\nMoving on...\n\n---\n\n### nonogo.addRow(key, value, callback)\n\nAdds a row to a key. If the key does not exist it is created.  If null is passed as the key name, one will be generated for you.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.addRow('People', {name:'Julio', age:'30'}, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\n---\n\n### nonogo.addField(key, index, field, value, callback)\n\nAdds a field to a row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.addField('People', 59, sex, 'male', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.editRow(key, index, value, callback)\n\nEdits an entire row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.editRow('People', 59, {name:'Sara', age:'31'}, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.editField(key, index, field, value, callback)\n\nEdits a single field.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.editField('People', 59, sex, 'female', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteKey(key, callback)\n\nDeletes an entire key.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteKey('People', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteRow(key, index, callback)\n\nDeletes an entire row.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteRow('People', 59, function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\n---\n\n### nonogo.deleteField(key, index, field, callback)\n\nDeletes a single field.  Callback is given two arguments, error and collection.\n\n##### Example:\n\t\n\tnonogo.deleteField('People', 59, 'name', function(error, collection) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.deleteAll(callback)\n\nDeletes entire database.  Callback is given one argument, error.\n\n##### Example:\n\t\n\tnonogo.deleteAll(function(error) {\n\t\t// Do stuff with collection.\n\t});\n\t\n---\n\n### nonogo.commit(callback)\n\nCommits changes to the collection object to database file.  Callback is given one argument, error.\n\n##### Example:\n\t\n\tnonogo.commit(function(error) {\n\t\t// Do stuff with collection.\n\t});\n\n\n\n","maintainers":[{"name":"ak4vl","email":"ak4vl.qrp@gmail.com"}],"time":{"modified":"2022-06-22T04:58:36.435Z","created":"2012-12-31T21:44:19.382Z","0.0.5":"2012-12-31T21:44:20.315Z","0.0.6":"2013-01-02T04:04:07.083Z"},"author":{"name":"Julio Jimenez","email":"ak4vl.qrp@gmail.com"}}