{"_id":"classical-chinese","_rev":"37-1831975d7ccf140af50cacbe0a66cfce","name":"classical-chinese","description":"Classical Chinese literature in JavaScript","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"classical-chinese","version":"0.0.1","description":"Classical Chinese literature in JavaScript","main":"main.js","author":{"name":"James H. Edwards"},"keywords":["classical","chinese","literature","poetry"],"license":"MIT","repository":{"type":"git","url":"https://github.com/incrediblesound/classical"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/incrediblesound/classical/issues"},"homepage":"https://github.com/incrediblesound/classical","_id":"classical-chinese@0.0.1","dist":{"shasum":"71655063ae782d604b53d4622d08bd9a1eae5684","tarball":"https://registry.npmjs.org/classical-chinese/-/classical-chinese-0.0.1.tgz","integrity":"sha512-3KKvScNEVOAvTDNWenILlrMipI2YDXQtrVbYNSPyK51XRtsVdhVDPfHCTBAmJrU/6eyseYMcRbtcHP6CJwz2IA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnWwJqclbA7kUpJEpIRsoH9vKZoJSRmJUxdNQeGhGf+AIgaLKM/DF6qNY1jDRMB6qnKy3gpvWhPBO9XqjIYL66WE4="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jhedwards","email":"james.howe.edwards@gmail.com"},"maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}]},"0.0.2":{"name":"classical-chinese","version":"0.0.2","description":"Classical Chinese literature in JavaScript","main":"main.js","author":{"name":"James H. Edwards"},"keywords":["classical","chinese","literature","poetry"],"license":"MIT","repository":{"type":"git","url":"https://github.com/incrediblesound/classical-chinese"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/incrediblesound/classical-chinese/issues"},"homepage":"https://github.com/incrediblesound/classical-chinese","_id":"classical-chinese@0.0.2","dist":{"shasum":"7341294a0ab01e297075be80ebc246dc2122e764","tarball":"https://registry.npmjs.org/classical-chinese/-/classical-chinese-0.0.2.tgz","integrity":"sha512-Ap8iqDKWuRXInRZN84sUOsvNFtgE10WNGF+STKfemXe4T+4HEF+T9TO2vYEwXxip5VLU6jrqkzQ/aiB4hQck1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxJdUlWCZuF5VEYz8CxhT50MctJfnazgheWdSO4pKRXgIgNCiTuQxDfkzd04uinXKCg6vKue1M8ELaOd8TG32wpPg="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jhedwards","email":"james.howe.edwards@gmail.com"},"maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}]},"0.0.3":{"name":"classical-chinese","version":"0.0.3","description":"Classical Chinese literature in JavaScript","main":"main.js","author":{"name":"James H. Edwards"},"keywords":["classical","chinese","literature","poetry"],"license":"MIT","repository":{"type":"git","url":"https://github.com/incrediblesound/classical-chinese"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/incrediblesound/classical-chinese/issues"},"homepage":"https://github.com/incrediblesound/classical-chinese","_id":"classical-chinese@0.0.3","dist":{"shasum":"ba699d283b2cca823259c18219c7d24b9f90ba1f","tarball":"https://registry.npmjs.org/classical-chinese/-/classical-chinese-0.0.3.tgz","integrity":"sha512-zoaFlEA6gnJfXhRX6ExoYpQxJqtdOPhQhJ1PNQ3u9coiejV5zvoyPKtGagwOJkWCuRUt7XQayf02pCN0Mvqt0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS6Jsavqe2aX27m0USdQEpqlsCAZ0/06KqD4gbFjuj8wIhAKdZixunacfXNrpqFUZyMFY6d5+8bK2GZriobtrmHOYl"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jhedwards","email":"james.howe.edwards@gmail.com"},"maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}]},"0.0.4":{"name":"classical-chinese","version":"0.0.4","description":"Classical Chinese literature in JavaScript","main":"main.js","author":{"name":"James H. Edwards"},"keywords":["classical","chinese","literature","poetry"],"license":"MIT","repository":{"type":"git","url":"https://github.com/incrediblesound/classical-chinese"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/incrediblesound/classical-chinese/issues"},"homepage":"https://github.com/incrediblesound/classical-chinese","_id":"classical-chinese@0.0.4","dist":{"shasum":"82f414ab21a6823f9125607c626e2d27f0f44aba","tarball":"https://registry.npmjs.org/classical-chinese/-/classical-chinese-0.0.4.tgz","integrity":"sha512-eFUY/HyNeiEHujIGyOjDMhJ9T5nXigHCjgi3tl4Q2f4lnId1nDQzBcOvPq5+22mSrNsMWt6EomWd7n8TF0XH5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsgdu2LU+3aIO1D3u/GEyFJpaYzpuR8ir3mgfLYuuKDAiEA6KKyvXarh2o1MMivAX5pjyxBLIQYQlG+YihCfDZlI2w="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jhedwards","email":"james.howe.edwards@gmail.com"},"maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}]},"0.0.5":{"name":"classical-chinese","version":"0.0.5","description":"Classical Chinese literature in JavaScript","main":"main.js","author":{"name":"James H. Edwards"},"keywords":["classical","chinese","literature","poetry"],"license":"MIT","repository":{"type":"git","url":"https://github.com/incrediblesound/classical-chinese"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/incrediblesound/classical-chinese/issues"},"homepage":"https://github.com/incrediblesound/classical-chinese","_id":"classical-chinese@0.0.5","dist":{"shasum":"62fec36a1b165564e22103f2de3752692ce54793","tarball":"https://registry.npmjs.org/classical-chinese/-/classical-chinese-0.0.5.tgz","integrity":"sha512-LtC3ZHbus8hPFduc/QtONOnQlcUv59gHBlVVjvEzl/eltRqn83X5/bM0aqJHYw61B51WrqVfMUakKiGQ4zh9BA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1fk6IWa7lKKJfOeGKsU1yslIEftGPw3hEnx7bAPfOMwIge/ONN7cdK3oKbuMO8GzUdmpYMs0YyJeMeFxOcmwNSbY="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jhedwards","email":"james.howe.edwards@gmail.com"},"maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}]},"0.0.6":{"name":"classical-chinese","version":"0.0.6","description":"Classical Chinese literature in JavaScript","main":"main.js","author":{"name":"James H. Edwards"},"keywords":["classical","chinese","literature","poetry"],"license":"MIT","repository":{"type":"git","url":"https://github.com/incrediblesound/classical-chinese"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/incrediblesound/classical-chinese/issues"},"homepage":"https://github.com/incrediblesound/classical-chinese","_id":"classical-chinese@0.0.6","dist":{"shasum":"1cd62e3588659ae94516b93aca3047604e6497b7","tarball":"https://registry.npmjs.org/classical-chinese/-/classical-chinese-0.0.6.tgz","integrity":"sha512-Rz0f89Pc1kAaTVV8PfgS/Gmpl4i6kI9ETJMU4Q7Q/SkvK9G2+8tTrh1Nvfa9aNzjtzO+WqwSxqrRAoWz3bU5Hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjYWy9cjQaq/q5og6Qu09UvFqde6ZpNO+QfPLJr+CeFAIgCpAMWkTDfbKch6uYMV6Jk/MwWECMa2kvCQppCbiGGtg="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jhedwards","email":"james.howe.edwards@gmail.com"},"maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}]},"0.0.7":{"name":"classical-chinese","version":"0.0.7","description":"Classical Chinese literature in JavaScript","main":"main.js","author":{"name":"James H. Edwards"},"keywords":["classical","chinese","literature","poetry"],"license":"MIT","repository":{"type":"git","url":"https://github.com/incrediblesound/classical-chinese"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/incrediblesound/classical-chinese/issues"},"homepage":"https://github.com/incrediblesound/classical-chinese","_id":"classical-chinese@0.0.7","dist":{"shasum":"9156cac1de952e5b5c0e3ade0c5e70779da85f9a","tarball":"https://registry.npmjs.org/classical-chinese/-/classical-chinese-0.0.7.tgz","integrity":"sha512-UKNUne+i9QGF+0T2CMqCLQR+7jtCfkrrYuIjN29lleZpN8GadPqhZmB3+XFsq5KB5BHJCL/AW5qwBr5E0jLDGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDojMW5KQ94EwYCyPK/EEuQ3KXJMgHcv8seBEMlJ9QoFAIhAO3NTlv4NF5btXZtxQF8dbKgE8sJh1r8upIltD94XZgI"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jhedwards","email":"james.howe.edwards@gmail.com"},"maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}]}},"readme":"Classical Chinese for Node.js\n=============================\n\nThis is the beginning of a hopefully vast project that will make the content of Classical Chinese texts available within any Node.js app. I hope you will frequently check for updates and, if you have any ideas or want to contribute, will open issues and pull requests on the github repository.\n\n<strong>0.0.4 Updates:</strong> Fix incomplete texts. Add \"Art of War\" by Sunzi. Add concordance function.    \n<strong>0.0.5</strong> Add mengzi. Change language in findIn return data.    \n<strong>0.0.6</strong> Add getFull() function for full text retrieval.    \n\nThe examples below assume we have required the module thusly:\n\n    var classical = require('classical-chinese');\n\n##Load the Texts\n\nYou can load all of the texts\n\n    classical.loadAll();\n\nOr just some of them\n\n    classical.loadSome('laozi','libai','dufu');\n\nThese functions parse the texts and load them from a local JSON file. See the list at the bottom of currently available texts.\n\n##Get Information from Texts\n\nIf you want a list of titles within a given text:\n```javascript\nclassical.getTitles('zhuangzi', function (titles) {\n\tconsole.log(titles) //returns an array of all the chapter/poem titles in the text\n})\n```\nIf you want an entire text:\n```javascript\nvar daodejing = classical.getFull('laozi');\n//daodejing now contains an array of chapter objects\n```\nIf you want a specific chapter of a text, getText takes a book name, a chapter name and a callback:\n```javascript\nclassical.getText('zhuangzi', '逍遙游', function (result) {\n\tconsole.log(result) // returns an object: {title: '逍遙游', body: '...'}\n})\n```\nIf you want to find specific characters in a text, use findIn with the book name and the characters you want to search for:\n```javascript\nclassical.findIn('zhuangzi', '聖知之法', function (results) {\n\tconsole.log(results) // returns matches from all chapters in a text: [ { section: '胠篋', line: '并其聖知之法而盜之' },{ section: '胠篋', line: '并與其聖知之法' } ]\n\n})\n```\nIf you want to search the entire library from a string of characters use searchAll:\n```javascript\nclassical.searchAll('饿死', function (results) {\n\tconsole.log(results) // returns matches in all texts: { laozi: [ 'No matches.' ], libai: [ { section: '笑歌行（以下二首，苏轼云是伪作）', line: '夷齐饿死终无成' } ], dufu: [ { section: '奉赠韦左丞丈二十二韵', line: '纨袴不饿死' }, { section: '醉时歌（赠广文馆博士郑虔）', line: '焉知饿死填沟壑' }, { section: '奉赠鲜于京兆二十韵（鲜于仲通，天宝末为京兆尹）', line: '有儒愁饿死' } ], zhuangzi: [ 'No matches.' ] }\t\n})\n```\nIf you want a list of every character in a text and the lines where they occur, use the concordance function:\n```javascript\nclassical.concordance('laozi', function (results) {\n\t\tconsole.log(results); // returns an object with a property for each character and an array of occurances: {'败': [ '为者败之', '故无败', '常于几成而败之', '则无败事' ],'嘘': [ '或嘘或吹' ],'吹': [ '或嘘或吹' ],'羸': [ '或强或羸' ],'隳': [ '或载或隳' ],}\n\t})\n```\n##Currently available texts:\n\n'laozi' - The Dao De Jing (aka Tao Te Qing). A warring states era text on philosophy and statecraft.    \n'zhuangzi' - The Zhuangzi is another warring states era text, very rich and colorful in its language.    \n'dufu' - The complete works of the Tang poet Du Fu.    \n'libai' - Complete works of Tang poet Li Bai.    \n'lunyu' - The collected sayings of Confucius compliled during the warring states period.    \n'sunzi' - The Art of War by the famous general Sunzi, early warring states (~500bc).    \n'mengzi' - Canonical confucian philosopher, late warring states.    \n\n###License\nMIT\n","maintainers":[{"name":"jhedwards","email":"james.howe.edwards@gmail.com"}],"time":{"modified":"2022-06-13T06:06:03.435Z","created":"2014-05-26T11:43:19.819Z","0.0.1":"2014-05-26T11:43:34.437Z","0.0.2":"2014-05-26T11:47:49.203Z","0.0.3":"2014-05-26T12:17:11.684Z","0.0.4":"2014-05-27T13:01:24.997Z","0.0.5":"2014-05-27T14:27:14.758Z","0.0.6":"2014-06-23T05:40:46.988Z","0.0.7":"2014-06-23T05:43:05.092Z"},"readmeFilename":"README.md","homepage":"https://github.com/incrediblesound/classical-chinese","keywords":["classical","chinese","literature","poetry"],"repository":{"type":"git","url":"https://github.com/incrediblesound/classical-chinese"},"author":{"name":"James H. Edwards"},"bugs":{"url":"https://github.com/incrediblesound/classical-chinese/issues"},"license":"MIT"}