{"_id":"svn-spawn","_rev":"26-a8753671665bfa4392729d4632840ac8","name":"svn-spawn","description":"SVN access based on svn cli command","dist-tags":{"latest":"0.1.6"},"versions":{"0.0.1":{"name":"svn-spawn","version":"0.0.1","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"_id":"svn-spawn@0.0.1","dist":{"shasum":"1b5c7f227731525fd4fc603d2766b312d6b1f01d","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.0.1.tgz","integrity":"sha512-McspUbsdW1Vf7V1UT0Ug0SRYIxF7LflUcm9sdKpnGPjvpGJEQPC5ZwX8oorpv6jEe6pUn8fXxXIZS3zKKXIKqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaJ41WmL1e5vuCiqmAF52XKG/FzqcPogs0XucoMNzTZAiEA3LXy6FI7Ol5YHXuAy/48VwpBogCathbzu9BGjK5Wcfo="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"directories":{}},"0.1.0":{"name":"svn-spawn","version":"0.1.0","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"_id":"svn-spawn@0.1.0","dist":{"shasum":"4bb04b135eaca8948dfead63b37d0cf4b6951ba7","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.1.0.tgz","integrity":"sha512-ooDjCFivkGql4R113SpondMbiZ2B3hsd3W9JwkohjFDCXDRx3IrHbBg5eBlhSDP4lAsfBRYUwA8TT3FbNsVNaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICdgytK+6V9B1qg4jfc3u1EPdHbnat8yXFxAAq8rbBH/AiBZfpW5uPQAw9nQq5PcSg01bYXbPOhF+C02qrFdBv3qNw=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"directories":{}},"0.1.1":{"name":"svn-spawn","version":"0.1.1","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"_id":"svn-spawn@0.1.1","dist":{"shasum":"9f6fde534cfc4467461177e603f60a26b91da6b3","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.1.1.tgz","integrity":"sha512-ZgBs9mfh7yzqrj0Hj7Ht9CyoLPF1avImYmBtcOjjTdaxdNswgeNdgJjyUKS7YXx3KCu1EqjPB5wGHxWJga7x7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHJG79ZObPbEcHpdS+9j7C3KOZtz3azaAmphw41QSbQAIhAI4TXgp94kzt5x89Jo9xqHOG8Gx09cKZUNsG0iVBrIJg"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"directories":{}},"0.1.2":{"name":"svn-spawn","version":"0.1.2","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"./test/init.sh && nodeunit test"},"repository":{"type":"git","url":"https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"_id":"svn-spawn@0.1.2","dist":{"shasum":"b21eb90397c69545824080540ce4c4cad6617bc4","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.1.2.tgz","integrity":"sha512-vrJiu2HEYAnwU6yUkEbA50bvEnsJQDR5RZy6pkehgwlsmA1/jNc57d3Knb518gv8nb+m07akmBmKpmXfNqFOWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9OPuJwvfgwIbcliaXquNfs9AU2P5aLYZcJS+Q8maXAAiAZUDOHw45wIQreXWC+GvJkORuEOUKEJeqJZIs1fQovfg=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"directories":{}},"0.1.3":{"name":"svn-spawn","version":"0.1.3","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"./test/init.sh && nodeunit test"},"repository":{"type":"git","url":"https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"_id":"svn-spawn@0.1.3","dist":{"shasum":"d03889f873447d7da6cca6eaa88374988d980aa2","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.1.3.tgz","integrity":"sha512-XBbb3w5s1RqGRRh473Gnbre7NN8mL73C8fYxpj6ACirifESK2pX7WtINIpcdLXgzZ2nUXQPI5t7Jwo2awT5u7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTqffJ6rb/VgZD8sFhceCwq17WlOBQOrg4N3kiWUaQEAIgRlADCNUlQ0DDAFyUbkOpOXoymmdW4jimRpnvc14+TXs="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"directories":{}},"0.1.4":{"name":"svn-spawn","version":"0.1.4","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"./test/init.sh && nodeunit test"},"repository":{"type":"git","url":"https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"_id":"svn-spawn@0.1.4","dist":{"shasum":"13581a6a3cbed2db80da53696e8e24236f7e00e8","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.1.4.tgz","integrity":"sha512-VxquVixE57QitKZQ4tttPxcsrXRNug7Yuu+eMtdv90CX77T4Ljews9Awp0Ce80GZAeT0kjocrDLcdREIaVaS6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMm48IT2PRdnSoZOSeTITdWGglG2cfoD1FVKgfpFM1qAiAUrgn8gAJAavPTn6Z831zl8lunoBD9uLTib7zywsMQ0w=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"directories":{}},"0.1.5":{"name":"svn-spawn","version":"0.1.5","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"./test/init.sh && ./node_modules/.bin/nodeunit test"},"repository":{"type":"git","url":"https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"devDependencies":{"nodeunit":"^0.9.1"},"gitHead":"59c4295e33403023f4e8a0e1fe34447a1cef9b5b","bugs":{"url":"https://github.com/ddliu/node-svn-spawn/issues"},"homepage":"https://github.com/ddliu/node-svn-spawn","_id":"svn-spawn@0.1.5","_shasum":"206b885447e1bb8d6ef2c785b6d182247c0422a5","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.10.33","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"dist":{"shasum":"206b885447e1bb8d6ef2c785b6d182247c0422a5","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.1.5.tgz","integrity":"sha512-QDEWS0xQHM7jQem7lEqxtVfcnrDYDEMUJ1DSPkiOHOZARcyfiAI1TaxEpsK/4j9k2QtwgvW5JpsSHSJyRiJ+AQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9j9fmgax/+oTj2wnpMQ00OF1bMRYAscAoWZsSJ3KpFAiB839ThWg4woHu2GLLs6/bfLZXzo9OHqFZGxu3kroIF5g=="}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/svn-spawn-0.1.5.tgz_1455274294866_0.6615842746105045"},"directories":{}},"0.1.6":{"name":"svn-spawn","version":"0.1.6","description":"SVN access based on svn cli command","main":"lib/svn.js","scripts":{"test":"./test/init.sh && ./node_modules/.bin/nodeunit test"},"repository":{"type":"git","url":"git+https://github.com/ddliu/node-svn-spawn.git"},"keywords":["svn","subversion"],"author":{"name":"dong"},"license":"MIT","dependencies":{"easy-spawn":"0.0.2","async":"~0.2.9","xml2js":"~0.2.7"},"devDependencies":{"nodeunit":"^0.9.1"},"gitHead":"754236d9ea2dcf82ea02c6f9d7206b662f1e5f8c","bugs":{"url":"https://github.com/ddliu/node-svn-spawn/issues"},"homepage":"https://github.com/ddliu/node-svn-spawn#readme","_id":"svn-spawn@0.1.6","_npmVersion":"6.4.1","_nodeVersion":"10.1.0","_npmUser":{"name":"dong","email":"ddliuhb@gmail.com"},"dist":{"integrity":"sha512-Q5asheLx22Tyo4wJSz/YR2zvuutTTcQFJ1srfXIERHMghLn1H3e1niKqyN7RClFFSBpQc2bVBZvPTL2plqqZYw==","shasum":"da08a774234c023815de9d58ab63510a7a237075","tarball":"https://registry.npmjs.org/svn-spawn/-/svn-spawn-0.1.6.tgz","fileCount":17,"unpackedSize":16971,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGWeACRA9TVsSAnZWagAAyhQP/AvMgzcGbezYWxMZN2CU\nL7rTfNaIioUGY8yI7ssPU9GV39oiHVGGCO3kkn7be3DpkMA/8XVOgwrSLMhH\nRuu1WhAmdnlF3tymyqV0zXc6odhMWTgDdkFmZHFYbfykQv1zbIrri466wc9g\nn0eQGd+YPZ4dp/d59S2iPgUBZLvmahcrYrMp0ibARhI/9rz3S3+Ah7ksRhlX\nbcwhSyfNsC11FuQRTjqd7D6E4IbgA7zMAVj4yTUa4npJXh0dHQlsB5KnaBWo\n8hrHLBrq1KEFrLkqFa41W3QW+CJyTsN4Oi74q2T6Uq+2t2qGt+YEWx/gxmMq\njlQs4/5+OasjK8+0wuUEUOcCOVSIOlBW+QgPApNdJOdJusvxMZ5SGJXFBtdm\nEqQMYrWkSaIYFabe4R2Yg4viFwyc5N3AxOO76TS4CijF/mSY0udgxuyRz1wr\nu7SQi7IIkFLP6dbw5tU2JpwUXtMLytnNu+BL+1zaO6JFFCAjWr/y5jhL4yol\nR+/vHFmTNb4E8/MNguo32aS8iu0GcMWmh4kZgEsCZwCUJ4Db7dZCaOtdzhnu\ne/ZZCaNQyFqkwoQNYILoOnFJX+U+4F3k9CmngPNFA1uI7QQOxeyOU3A1jXu8\nElqZmKmq3XjsR0CSQ2UJTAu9ypFvc7Ih4CuPP1AMX+ckVYMuVf4DT8fv24Kh\ntg7t\r\n=eo+2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaNrDMcMFYY2IiRNxKQe1W+3WPj/2fY7otPRk6cd7bUAIhALZQS7gbSmXraOumo4n2trsCzszdcSxLdr37by27XZG+"}]},"maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svn-spawn_0.1.6_1561945984123_0.4209645646109037"},"_hasShrinkwrap":false}},"readme":"# svn-spawn\n\n[![npm](https://img.shields.io/npm/v/svn-spawn.svg?style=flat-square)](https://www.npmjs.com/package/svn-spawn)\n[![npm](https://img.shields.io/npm/dm/svn-spawn.svg?style=flat-square)](https://www.npmjs.com/package/svn-spawn)\n[![Travis](https://img.shields.io/travis/ddliu/node-svn-spawn.svg?style=flat-square)](https://travis-ci.org/ddliu/node-svn-spawn)\n![npm](https://img.shields.io/npm/l/svn-spawn.svg?style=flat-square)\n\nEasy way to access svn repository with node.js.\n\n## Features\n\n- Easy to use\n- Fast way to add local changes\n- Query svn infomation as array or object\n- Common svn commands are all supported\n\n## Usage\n\nCreate a svn client instance\n\n```js\nvar Client = require('svn-spawn');\nvar client = new Client({\n    cwd: '/path to your svn working directory',\n    username: 'username', // optional if authentication not required or is already saved\n    password: 'password', // optional if authentication not required or is already saved\n    noAuthCache: true, // optional, if true, username does not become the logged in user on the machine\n});\n```\n`svn update`\n\n```js\nclient.update(function(err, data) {\n    console.log('updated');\n});\n```\n\n`svn info`\n\n```js\nclient.getInfo(function(err, data) {\n    console.log('Repository url is %s', data.url);\n});\n```\n\nMake some changes and commit all\n\n```js\nclient.addLocal(function(err, data) {\n    console.log('all local changes has been added for commit');\n\n    client.commit('commit message here', function(err, data) {\n        console.log('local changes has been committed!');\n    });\n});\n```\n\nSingle file\n\n```js\nclient.add('relative/path/to/file', function(err, data) {\n    client.commit(['commit message here', 'relative/path/to/file'], function(err, data) {\n        console.log('committed one file!');\n    });\n});\n```\n\nRun any svn command\n\n```js\nclient.cmd(['subcommand', '--option1=xx', '--option2=xx', 'arg1', 'arg2'], function(err, data) {\n    console.log('subcommand done');\n});\n```\n\n## Result Object\n\n`getXXX` methods will return parsed data as object.\n\n`getInfo` result example:\n\n```json\n{\n  \"$\": {\n    \"path\": \".\",\n    \"revision\": \"1\",\n    \"kind\": \"dir\"\n  },\n  \"url\": \"file:///home/dong/projects/node-packages/node-svn-spawn/test/tmp/repo\",\n  \"repository\": {\n    \"root\": \"file:///home/dong/projects/node-packages/node-svn-spawn/test/tmp/repo\",\n    \"uuid\": \"302eb8ee-a81a-4432-8477-1ad8fe3a9a1e\"\n  },\n  \"wc-info\": {\n    \"wcroot-abspath\": \"/home/dong/projects/node-packages/node-svn-spawn/test/tmp/copy\",\n    \"schedule\": \"normal\",\n    \"depth\": \"infinity\"\n  },\n  \"commit\": {\n    \"$\": {\n      \"revision\": \"1\"\n    },\n    \"author\": \"dong\",\n    \"date\": \"2013-11-08T02:07:25.884985Z\"\n  }\n}\n```\n\n`getLog` result example:\n\n```json\n[\n    {\n      \"$\": {\n        \"revision\": \"1\"\n      },\n      \"author\": \"dong\",\n      \"date\": \"2013-11-08T02:10:37.656902Z\",\n      \"msg\": \"init repo\"\n    },\n    ...\n]\n```\n\n`getStatus` result example:\n\n```json\n[\n  {\n    \"$\": {\n      \"path\": \"a.txt\"\n    },\n    \"wc-status\": {\n      \"$\": {\n        \"props\": \"none\",\n        \"item\": \"modified\",\n        \"revision\": \"1\"\n      },\n      \"commit\": {\n        \"$\": {\n          \"revision\": \"1\"\n        },\n        \"author\": \"dong\",\n        \"date\": \"2013-11-08T02:17:20.390152Z\"\n      }\n    }\n  }\n]\n```\n\n## Requirements\n\nYou need to have the `svn` command installed.\n\n## Installation\n\n```bash\nnpm install svn-spawn\n```\n","maintainers":[{"name":"dong","email":"ddliuhb@gmail.com"}],"time":{"modified":"2022-06-27T02:41:06.360Z","created":"2013-05-31T07:11:26.362Z","0.0.1":"2013-05-31T07:11:32.206Z","0.1.0":"2013-06-07T07:35:09.077Z","0.1.1":"2013-06-07T10:02:35.569Z","0.1.2":"2013-10-08T04:11:29.802Z","0.1.3":"2013-11-08T02:22:52.882Z","0.1.4":"2013-12-12T02:36:29.677Z","0.1.5":"2016-02-12T10:51:38.221Z","0.1.6":"2019-07-01T01:53:04.228Z"},"author":{"name":"dong"},"repository":{"type":"git","url":"git+https://github.com/ddliu/node-svn-spawn.git"},"users":{"fgribreau":true,"nachbar90":true,"jiangc":true,"zhongyuan":true,"blforce":true},"keywords":["svn","subversion"],"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/ddliu/node-svn-spawn#readme","bugs":{"url":"https://github.com/ddliu/node-svn-spawn/issues"}}