{ "_id": "archy", "_rev": "35-a2237730dde1adeaedf062de16b5f3a9", "name": "archy", "description": "render nested hierarchies `npm ls` style with unicode pipes", "dist-tags": { "latest": "1.0.0" }, "versions": { "0.0.0": { "name": "archy", "version": "0.0.0", "description": "render nested hierarchies `npm ls` style with unicode pipes", "main": "index.js", "directories": { "lib": ".", "example": "example", "test": "test" }, "devDependencies": { "tap": "~0.2.3" }, "scripts": { "test": "tap test" }, "repository": { "type": "git", "url": "git://github.com/substack/node-archy.git" }, "keywords": [ "hierarchy", "npm ls", "unicode", "pretty", "print" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": { "node": ">=0.4" }, "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "_id": "archy@0.0.0", "dependencies": {}, "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.106", "_nodeVersion": "v0.4.12", "_defaultsLoaded": true, "dist": { "shasum": "fcc82f2916a8307969b368e8617646b41697c37b", "tarball": "https://registry.npmjs.org/archy/-/archy-0.0.0.tgz" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ] }, "0.0.1": { "name": "archy", "version": "0.0.1", "description": "render nested hierarchies `npm ls` style with unicode pipes", "main": "index.js", "directories": { "lib": ".", "example": "example", "test": "test" }, "devDependencies": { "tap": "~0.2.3" }, "scripts": { "test": "tap test" }, "repository": { "type": "git", "url": "git://github.com/substack/node-archy.git" }, "keywords": [ "hierarchy", "npm ls", "unicode", "pretty", "print" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": { "node": ">=0.4" }, "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "_id": "archy@0.0.1", "dependencies": {}, "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.106", "_nodeVersion": "v0.4.12", "_defaultsLoaded": true, "dist": { "shasum": "8c26dc5741db90792ccdbd34c57311cb3003ea1b", "tarball": "https://registry.npmjs.org/archy/-/archy-0.0.1.tgz" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ] }, "0.0.2": { "name": "archy", "version": "0.0.2", "description": "render nested hierarchies `npm ls` style with unicode pipes", "main": "index.js", "directories": { "lib": ".", "example": "example", "test": "test" }, "devDependencies": { "tap": "~0.2.3" }, "scripts": { "test": "tap test" }, "repository": { "type": "git", "url": "git://github.com/substack/node-archy.git" }, "keywords": [ "hierarchy", "npm ls", "unicode", "pretty", "print" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": { "node": ">=0.4" }, "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "_id": "archy@0.0.2", "dependencies": {}, "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.106", "_nodeVersion": "v0.4.12", "_defaultsLoaded": true, "dist": { "shasum": "910f43bf66141fc335564597abc189df44b3d35e", "tarball": "https://registry.npmjs.org/archy/-/archy-0.0.2.tgz" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ] }, "1.0.0": { "name": "archy", "version": "1.0.0", "description": "render nested hierarchies `npm ls` style with unicode pipes", "main": "index.js", "devDependencies": { "tap": "~0.3.3", "tape": "~0.1.1" }, "scripts": { "test": "tap test" }, "testling": { "files": "test/*.js", "browsers": { "iexplore": [ "6.0", "7.0", "8.0", "9.0" ], "chrome": [ "20.0" ], "firefox": [ "10.0", "15.0" ], "safari": [ "5.1" ], "opera": [ "12.0" ] } }, "repository": { "type": "git", "url": "http://github.com/substack/node-archy.git" }, "keywords": [ "hierarchy", "npm ls", "unicode", "pretty", "print" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT", "gitHead": "30223c16191e877bf027b15b12daf077b9b55b84", "bugs": { "url": "https://github.com/substack/node-archy/issues" }, "homepage": "https://github.com/substack/node-archy", "_id": "archy@1.0.0", "_shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40", "_from": ".", "_npmVersion": "1.4.25", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "dist": { "shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40", "tarball": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz" }, "directories": {} } }, "readme": "# archy\n\nRender nested hierarchies `npm ls` style with unicode pipes.\n\n[![browser support](http://ci.testling.com/substack/node-archy.png)](http://ci.testling.com/substack/node-archy)\n\n[![build status](https://secure.travis-ci.org/substack/node-archy.png)](http://travis-ci.org/substack/node-archy)\n\n# example\n\n``` js\nvar archy = require('archy');\nvar s = archy({\n label : 'beep',\n nodes : [\n 'ity',\n {\n label : 'boop',\n nodes : [\n {\n label : 'o_O',\n nodes : [\n {\n label : 'oh',\n nodes : [ 'hello', 'puny' ]\n },\n 'human'\n ]\n },\n 'party\\ntime!'\n ]\n }\n ]\n});\nconsole.log(s);\n```\n\noutput\n\n```\nbeep\n├── ity\n└─┬ boop\n ├─┬ o_O\n │ ├─┬ oh\n │ │ ├── hello\n │ │ └── puny\n │ └── human\n └── party\n time!\n```\n\n# methods\n\nvar archy = require('archy')\n\n## archy(obj, prefix='', opts={})\n\nReturn a string representation of `obj` with unicode pipe characters like how\n`npm ls` looks.\n\n`obj` should be a tree of nested objects with `'label'` and `'nodes'` fields.\n`'label'` is a string of text to display at a node level and `'nodes'` is an\narray of the descendents of the current node.\n\nIf a node is a string, that string will be used as the `'label'` and an empty\narray of `'nodes'` will be used.\n\n`prefix` gets prepended to all the lines and is used by the algorithm to\nrecursively update.\n\nIf `'label'` has newlines they will be indented at the present indentation level\nwith the current prefix.\n\nTo disable unicode results in favor of all-ansi output set `opts.unicode` to\n`false`.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install archy\n```\n\n# license\n\nMIT\n", "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "time": { "modified": "2018-03-12T06:17:27.507Z", "created": "2012-03-08T21:18:36.039Z", "0.0.0": "2012-03-08T21:18:54.909Z", "0.0.1": "2012-03-08T23:09:26.726Z", "0.0.2": "2012-03-08T23:09:46.988Z", "1.0.0": "2014-09-14T07:57:58.806Z" }, "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "repository": { "type": "git", "url": "http://github.com/substack/node-archy.git" }, "users": { "tellnes": true, "conradz": true, "kxbrand": true, "carlosmarte": true, "sametsisartenep": true, "simplyianm": true, "burl.bn": true, "bret": true, "regular": true, "nice_body": true, "edobry": true, "bojand": true, "slurm": true, "morrelinko": true, "simonfan": true, "ahmed-dinar": true, "tomekf": true, "seangenabe": true, "wangnan0610": true, "madsummer": true, "edwardxyt": true }, "homepage": "https://github.com/substack/node-archy", "keywords": [ "hierarchy", "npm ls", "unicode", "pretty", "print" ], "bugs": { "url": "https://github.com/substack/node-archy/issues" }, "license": "MIT", "readmeFilename": "readme.markdown", "_attachments": {} }