{"_id":"gdsn","_rev":"52-94fe8f64fb2c5dcbd4da3444acc34ee1","name":"gdsn","description":"GDSN utility library for Node.js","dist-tags":{"latest":"0.2.6"},"versions":{"0.0.1":{"name":"gdsn","version":"0.0.1","description":"GDSN EIP component library for Node.js","engines":{"node":"0.8.6"},"author":{"name":"Theoxylo - http://https://githumb.com/theoxylo"},"dependencies":{"xpath.js":"0.0.1","xmldom":"0.1.11"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"./node-gdsn.js","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"gdsn@0.0.1","dist":{"shasum":"40180b37e820bdd2a057884f775b24e46e7c23b8","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.1.tgz","integrity":"sha512-Z3vf5oTSxbrnhF67bKLgdN98SVHzxCvr8qbyYQGslPYpg/Ad5laLdBjcq3ILJfnqK2hT2mWA3z9yJNUeLw5kuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB30M9njkFXWymq2PHR0ZIzclbAXhHL8y01prXbtT2O5AiEA8Cnpvlh1S8vBVagtAkeHcwv04RCqCFInJjPSXVY0R+M="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.2":{"name":"gdsn","version":"0.0.2","description":"GDSN EIP library for Node.js","engines":{"node":"0.8.6"},"author":{"name":"Theoxylo - http://https://githumb.com/theoxylo"},"dependencies":{"xpath.js":"0.0.1","xmldom":"0.1.11"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"gdsn@0.0.2","dist":{"shasum":"4d6b1020748b97c83d75c1262062fef449b76a00","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.2.tgz","integrity":"sha512-0hEplThrVMab9StQOA0NGm7/4u7YL6LzrULkP9EzHYLxY0pb9hVpulmFaYCiWkYy0eVz013d1/kw3bZCMcdwKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFE37eVLeSP8IbBuR4bH25iePD58PLYdFACWWITa9Z/WAiAY+gNkoPvvDhX5KGOVgopu9YLsJCJ/euymy7nFowJ74w=="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.3":{"name":"gdsn","version":"0.0.3","description":"GDSN EIP library for Node.js","engines":{"node":"0.8.6"},"author":{"name":"Theoxylo - http://https://githumb.com/theoxylo"},"dependencies":{"xpath.js":"0.0.1","xmldom":"0.1.11"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"gdsn@0.0.3","dist":{"shasum":"dbe7c5f62cf63f2fd4f0f90cc69276a5272af3c5","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.3.tgz","integrity":"sha512-lWh/f65gNhGv6qek1NqzoiBqv3GbJ5JUORBaYW1ikvFC8O4d3f6hzHgikC0TMzZEuN53pNmmpkXnIATKnUgiGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHuloBl1bJO4CekoJKIos7iXT7mmN6VbYn8zusWyPjBHAiEAqaBdaCnvwpbq6Y6hh7LUTvhjkpdKjeMk2rG1pCG6+sY="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.4":{"name":"gdsn","version":"0.0.4","description":"GDSN service library for Node.js","engines":{"node":"0.8.6"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.1","xmldom":"0.1.11"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"node test"},"_id":"gdsn@0.0.4","dist":{"shasum":"59d568bb934c7d45f7827bc8fa07fd7df2bf594c","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.4.tgz","integrity":"sha512-VTrrLnxML2esS903hQn64GYps8nGzSVHytkgKUpnP0QOV6eGCXyaq+aM8K0SPRrrLDi+aZ3obwHcmuLnlxYSeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjHwBJxOk656ZXcrWRA0rvVPHsH+ER8eEG44SqsRYipAiEA8l7m6Jk2zuqCg6QbhHcV4ozMweAxo/6nPrUnFVcSeVQ="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.5":{"name":"gdsn","version":"0.0.5","description":"GDSN service library for Node.js","engines":{"node":">=0.8.6"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.1","xmldom":"0.1.11"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"node test"},"_id":"gdsn@0.0.5","dist":{"shasum":"ec02af7a4a567d747a5fd89ff868de33a63bb68d","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.5.tgz","integrity":"sha512-os56ydpRs8A5LcI+9Y6e21VCGGlXL+UOwcioztPADKlFdYOkSWI5kpIkwYpjhAbFeZ0EIg2ncC3yblKJY14gjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXb/knoZ+GUR1La8B+J/okLnhlz+wwP0O9YTPo72P8LAiEArgsMx1gVEyVVxDbfjEXdMUfCw4BYC9Yf8xwRy/x5ofI="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.6":{"name":"gdsn","version":"0.0.6","description":"GDSN service library for Node.js","engines":{"node":">=0.8.6"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.3","xmldom":"0.1.13"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"node test"},"_id":"gdsn@0.0.6","dist":{"shasum":"4691248c441c69eabb4524b9602d2db426c4335a","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.6.tgz","integrity":"sha512-r0aL8/hdyZJbss23l1FEyew7pKqRDi2yZR8QOvH2yd31nn3GBwKPgV5DKrogm5Ngji3ohQU/ZpzfGxq+yKdL9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTjfu6U+LN5Bj/V7I4ONIObkAF/gPq7Q7aMjToZ5ke9AIhAKoI6L3N4C/KObC0FlqwtrSem8OIYkxr5uy0hXiX0+my"}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.7":{"name":"gdsn","version":"0.0.7","description":"GDSN service library for Node.js","engines":{"node":"0.8.6"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.3","xmldom":"0.1.13"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"node test"},"_id":"gdsn@0.0.7","dist":{"shasum":"cf73a71192ac6693c9d4dd7dddbe4897b77d363d","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.7.tgz","integrity":"sha512-zKtafzLJcz4mM7c4Kt9NvmMD1i1jZiNNgGt449mq1uLm4LY60jGyiXHGUdB9SeBUUqn5zcwjr+VYXREKq6f+Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFomR9DLAghR1nfZ7ubRFgcX3HHLsW3koMR6F2SXsoHhAiBMin1CM8Yj9eScmOsLwWX2hogPBaWy4Tey/Z13IOPReg=="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.8":{"name":"gdsn","version":"0.0.8","description":"GDSN service library for Node.js","engines":{"node":"0.8.6"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.3","xmldom":"0.1.13"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"node test"},"_id":"gdsn@0.0.8","dist":{"shasum":"55d99c880e54da0f6e8293c56ffb4ce2c38aed5d","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.8.tgz","integrity":"sha512-bLq/TWVzf/1z+ZMUftO900ov+Q3rBBM3u2QTIodaayyeHxxGmkFbrWASeARetMb/cpkzfA2EPec8RaGnAN/BPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ+H9SA21oEtyCuuglQLLJmxGJbmWD8gfYYwKh39e79gIgYHgeB+SdB7WC2MiknoWg1A7y0Kj2AFiNDqULsC5TSIg="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.0.9":{"name":"gdsn","version":"0.0.9","description":"GDSN service library for Node.js","engines":{"node":"0.8.6"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.3","xmldom":"0.1.13"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","node","eip","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"node ./test"},"_id":"gdsn@0.0.9","dist":{"shasum":"71466fb32761b6bbadf4bebb3f0c5f8ce3cd739c","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.0.9.tgz","integrity":"sha512-SzUWGxY/z7LfPML4smfUIXnoa8yCVb7B1S1h0OV3OD3Tnw1VjFZBRz7WB5X91Hudxa5Uc102UAwPHRur6hN4YA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD88v4DaMvKViBiLjn6fUV6PQKPqGQAqbUDYs315cO08wIgaa80dsbqcFk/rB1L20n5/tIhnFzIvnMFuZToy4WhLcg="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.1.0":{"name":"gdsn","version":"0.1.0","description":"GDSN utility library for Node.js","engines":{"node":">=0.8.6"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.3","xmldom":"0.1.19","xml-nodes":"0.1.0","underscore":"1.6.0"},"devDependencies":{},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"main":"index","directories":{},"keywords":["gdsn","xpath","xml"],"licenses":[{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"scripts":{"test":"node ./test"},"bugs":{"url":"https://github.com/theoxylo/node-gdsn/issues"},"_id":"gdsn@0.1.0","dist":{"shasum":"ab8bcf763cf71fd23eee42eaa954eb53c86bb774","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.1.0.tgz","integrity":"sha512-MA7O1l0qsCl1NIkI6wcQheKdsk1wGMnVprWUZqCKBRYFObAsh/Q6UWXvqlbfCKN1SsKHA4ZSWTvAO6jVMN39sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK38XBIUns/NTAFpBBO78fg2BORPUsxidh2xF09tEPhAIhANxcKk8LhI3OzPXuAhfhESdE4ZRboo444oqT8P7fgtFz"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"theoxylo","email":"theoxylo@yahoo.com"},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.1.1":{"name":"gdsn","version":"0.1.1","description":"GDSN utility library for Node.js","engines":{"node":">=0.10.26"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"xpath.js":"0.0.3","xmldom":"0.1.19"},"devDependencies":{"tap":"0.4.4"},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"keywords":["gdsn","xpath","xml","stream","gtin","gln"],"license":{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license"},"scripts":{"test":"tap ./test/test_*.js"},"bugs":{"url":"https://github.com/theoxylo/node-gdsn/issues"},"homepage":"https://github.com/theoxylo/node-gdsn","_id":"gdsn@0.1.1","dist":{"shasum":"f2014bec8428b4525002b12e780ec4988732b590","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.1.1.tgz","integrity":"sha512-gW+25AiQGi0EL2+MpqeWpacGUdZhfIX9fppLXujQz1Tfr0bGKSe9OM38FzAEz5cFzcgxkBLlsOrDML5JmJaVQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBI8rwp2rgrYQGmnJV4+0o09VLf5jpMzmLwYwcs7k4gAiB69/51Z7pTLq0jXX3CUv5ktlSDdVZ4Kai12WmqdtoyPQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"theoxylo","email":"theoxylo@yahoo.com"},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}]},"0.2.3":{"name":"gdsn","version":"0.2.3","description":"GDSN utility library for Node.js","engines":{"node":">=0.10.26"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"cheerio":"0.17.0"},"devDependencies":{"tap":"0.4.4"},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"keywords":["gdsn","xml","gtin","gln"],"license":{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license"},"scripts":{"test":"tap ./test/test_*.js"},"bugs":{"url":"https://github.com/theoxylo/node-gdsn/issues"},"homepage":"https://github.com/theoxylo/node-gdsn","_id":"gdsn@0.2.3","_resolved":"git://github.com/theoxylo/node-gdsn#53618ca063f4873fd208c711d6a22a8353cfa8f5","_from":".","_shasum":"07c998b87757c1f79aa10067c8951f346b15d654","_npmVersion":"1.4.9","_npmUser":{"name":"theoxylo","email":"theoxylo@yahoo.com"},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}],"dist":{"shasum":"07c998b87757c1f79aa10067c8951f346b15d654","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.2.3.tgz","integrity":"sha512-soSrRL/7vL4IoqXSai9n30baI1wk+TxVNVoD9oKG4TXGkjXUSJMTrplfE3gXC6jsTWw1P5oN8t+NANb00KZ1jA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3GLcJ5N68iFRND0k6uj03Vpd0Cc0OppGM3pwnHgaFUAiB381RRQ9VcSfDeHvyBy0kXeZgRbsJE3i3FD4CcXBljLQ=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gdsn-0.2.3.tgz_1485195890362_0.9032672920729965"}},"0.2.4":{"name":"gdsn","version":"0.2.4","description":"GDSN utility library for Node.js","engines":{"node":">=0.10.26"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"cheerio":"0.17.0"},"devDependencies":{"tap":"0.4.4"},"repository":{"type":"git","url":"git+https://github.com/theoxylo/node-gdsn.git"},"keywords":["gdsn","xml","gtin","gln"],"license":{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license"},"scripts":{"test":"tap ./test/test_*.js"},"bugs":{"url":"https://github.com/theoxylo/node-gdsn/issues"},"homepage":"https://github.com/theoxylo/node-gdsn","_id":"gdsn@0.2.4","_resolved":"git://github.com/theoxylo/node-gdsn#53618ca063f4873fd208c711d6a22a8353cfa8f5","_from":".","gitHead":"fa4157f70443d0024160da85367096f53c27c899","_shasum":"3d696a69ac6df2a37d4056b85680becf85601022","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"theoxylo","email":"theoxylo@yahoo.com"},"dist":{"shasum":"3d696a69ac6df2a37d4056b85680becf85601022","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.2.4.tgz","integrity":"sha512-Z5OaSuM4Qa+RiCYfmV/tXg/WEFFTZ+Gt0RTOsdzZV1Fo7jHd8+SZOFQM+gsvDZ+qDdhwUSHxoUmDZh/J1QlxWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb4Uj7Y1jpzG/6Gq7UwBE/UE34QM9zgpGddit+4R2YtAIgNydcH2zTzIC0fmp4ewHAIZoWTESD3skitYeBTr8mlMY="}]},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gdsn-0.2.4.tgz_1485196463905_0.4132265239022672"}},"0.2.5":{"name":"gdsn","version":"0.2.5","description":"GDSN utility library for Node.js","engines":{"node":">=4.0.0"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"cheerio":"^0.22.0"},"devDependencies":{"tap":"0.4.4"},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"keywords":["gdsn","xml","gtin","gln"],"license":{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license"},"scripts":{"test":"tap ./test/test_*.js"},"bugs":{"url":"https://github.com/theoxylo/node-gdsn/issues"},"homepage":"https://github.com/theoxylo/node-gdsn","_id":"gdsn@0.2.5","_resolved":"git://github.com/theoxylo/node-gdsn#53618ca063f4873fd208c711d6a22a8353cfa8f5","_from":".","_shasum":"84bdeeeb9d6732270db4441250be93c8b599fc85","_npmVersion":"1.4.9","_npmUser":{"name":"theoxylo","email":"theoxylo@yahoo.com"},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}],"dist":{"shasum":"84bdeeeb9d6732270db4441250be93c8b599fc85","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.2.5.tgz","integrity":"sha512-nb0nD8oF0zgUGmy11woXjAsJZ6ZD+AeiIuVdnBzh+E2ovnh9/SHMsxeV/44JatcSattI+wTgXOgPKxDgqpfJkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHToEmSvmbc8JASIiCisk9J5gxWR4/oJ3Qx7zEO6U3DCAiAeet15MGFNUjnuegLPgSQIZIVHz8ZpmmCUcwrDAP8KKw=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gdsn-0.2.5.tgz_1485975136533_0.6251735207624733"}},"0.2.6":{"name":"gdsn","version":"0.2.6","description":"GDSN utility library for Node.js","engines":{"node":">=4.0.0"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"dependencies":{"cheerio":"^0.22.0"},"devDependencies":{"tap":"0.4.4"},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"keywords":["gdsn","xml","gtin","gln"],"license":{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license"},"scripts":{"test":"tap ./test/test_*.js"},"bugs":{"url":"https://github.com/theoxylo/node-gdsn/issues"},"homepage":"https://github.com/theoxylo/node-gdsn","_id":"gdsn@0.2.6","_shasum":"20435759492d5e9c3e48fbea81d320fd4b3ac578","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"theoxylo","email":"theoxylo@yahoo.com"},"maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}],"dist":{"shasum":"20435759492d5e9c3e48fbea81d320fd4b3ac578","tarball":"https://registry.npmjs.org/gdsn/-/gdsn-0.2.6.tgz","integrity":"sha512-NGl/nSAkOm8gVkhNJum+oTQeNMidFgXzAuBiEzJnRCvSshHvpAUe/1AEt+oxpfVOuRFk+WB6ZhGtG3MnekE7EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBz2TnMU/1o2bcr8suVlUhxfoMZLlTSE+qQw4oA8KMLPAiEAgLFph7JLXUFB1B1IK+rbqWumd733kiLt2EPHAw8V/T8="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gdsn-0.2.6.tgz_1485977372335_0.1708080938551575"}}},"readme":"## node-gdsn\n\nA GDSN service library for Node.js.\n\nProvides useful utilities for data pools and trading parties.\n\n\n## Installation\n\nGet the latest published release from npm:\n\n    npm install gdsn\n    \n    \n## Usage\n\n### To validate a GLN:\n  * should be 13 digits\n  * may contain leading zeroes (it's a string, not a number)\n  * the last digit is a check digit\n\n```js\nvar Gdsn = require('gdsn')\nvar gdsn = new Gdsn()\nvar gln = '1100001011483'\nvar isValid = gdsn.validateGln(gln) // return [true|false]\nconsole.log('GLN ' + gln + ' is ' + (isValid ? 'valid' : 'invalid'))\n```\n\n### To validate a GTIN:\n  * should be 14 digits\n  * may contain leading zeroes (it's a string, not a number)\n  * the last digit is a check digit\n\n```js\nvar Gdsn = require('gdsn')\nvar gdsn = new Gdsn()\nvar gtin = '00749384988152'\nvar isValid = gdsn.validateGtin(gtin) // return [true|false]\nconsole.log('GTIN ' + gtin + ' is ' + (isValid ? 'valid' : 'invalid'))\n```\n\n### To extract all trade items from a CIN stream:\n  * large CIN files may be 10+ MB and contain hundreds of items\n  * this approach uses a callback to pass the complete array of items after the stream has ended\n\n```js\nvar Gdsn = require('gdsn')\nvar gdsn = new Gdsn()\ngdsn.items.getTradeItemsFromFile(cinFile, function(err, items) {\n  if (err) throw err\n  for (i in items) {\n    var item = items[i]\n    console.log('Found item with GTIN ' + item.gtin + ', extracted from message ' + item.msg_id)\n  }\n  console.log('item count: ' + items.length)\n})\n```\n\n### To extract trade items from a CIN stream one at a time:\n  * this approach lets your callback work with each trade item as it is read\n  * the first trade item will not be passed until the dataRecipient has been read from the stream\n\n```js\nvar fs   = require('fs')\nvar Gdsn = require('gdsn')\nvar gdsn = new Gdsn()\nvar readable = fs.createReadStream(cinFile, {encoding: 'utf8'})\nvar items = []\ngdsn.items.getEachTradeItemFromStream(readable, function (err, item) {\n  if (err) throw err\n  if (item) {\n    console.log('Found item with GTIN ' + item.gtin + ', extracted from message ' + item.msg_id)\n    items.push(item)\n  }\n  else {\n    // all done\n    console.log('item count: ' + items.length)\n  }\n})\n```\n\n\n## Development\n\nClone the latest DEV release from GH:\n\n    git clone git@github.com:theoxylo/node-gdsn.git\n\n\nTo run some quick tests:\n\n    cd node-gdsn\n    npm update\n    npm test\n\n\nSubmit a pull request to contribute!\n","maintainers":[{"name":"theoxylo","email":"theoxylo@yahoo.com"}],"time":{"modified":"2022-06-18T05:10:08.027Z","created":"2012-08-20T16:18:05.287Z","0.0.1":"2012-08-20T16:18:07.250Z","0.0.2":"2012-10-15T21:49:03.843Z","0.0.3":"2012-10-25T22:58:52.102Z","0.0.4":"2013-03-12T23:58:46.876Z","0.0.5":"2013-03-15T21:53:28.052Z","0.0.6":"2013-03-15T22:18:47.792Z","0.0.7":"2013-03-22T17:24:19.746Z","0.0.8":"2013-03-22T20:23:19.663Z","0.0.9":"2013-07-10T23:47:25.400Z","0.1.0":"2014-02-21T00:36:32.044Z","0.1.1":"2014-05-29T19:11:47.366Z","0.2.3":"2017-01-23T18:24:51.001Z","0.2.4":"2017-01-23T18:34:24.143Z","0.2.5":"2017-02-01T18:52:17.250Z","0.2.6":"2017-02-01T19:29:33.098Z"},"author":{"name":"Theoxylo - https://github.com/theoxylo"},"repository":{"type":"git","url":"https://github.com/theoxylo/node-gdsn.git"},"readmeFilename":"README.md","keywords":["gdsn","xml","gtin","gln"],"bugs":{"url":"https://github.com/theoxylo/node-gdsn/issues"},"homepage":"https://github.com/theoxylo/node-gdsn","license":{"type":"MIT License","url":"http://www.opensource.org/licenses/mit-license"},"users":{"detj":true}}