UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

116 lines (115 loc) 4.38 kB
{ "_args": [ [ { "raw": "archy@^1.0.0", "scope": null, "escapedName": "archy", "name": "archy", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/pnpm-list" ] ], "_from": "archy@>=1.0.0 <2.0.0", "_id": "archy@1.0.0", "_inCache": true, "_location": "/archy", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "_npmVersion": "1.4.25", "_phantomChildren": {}, "_requested": { "raw": "archy@^1.0.0", "scope": null, "escapedName": "archy", "name": "archy", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/pnpm-list" ], "_resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", "_shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40", "_shrinkwrap": null, "_spec": "archy@^1.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/pnpm-list", "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "bugs": { "url": "https://github.com/substack/node-archy/issues" }, "dependencies": {}, "description": "render nested hierarchies `npm ls` style with unicode pipes", "devDependencies": { "tap": "~0.3.3", "tape": "~0.1.1" }, "directories": {}, "dist": { "shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40", "tarball": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz" }, "gitHead": "30223c16191e877bf027b15b12daf077b9b55b84", "homepage": "https://github.com/substack/node-archy#readme", "keywords": [ "hierarchy", "npm ls", "unicode", "pretty", "print" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "name": "archy", "optionalDependencies": {}, "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", "readmeFilename": "readme.markdown", "repository": { "type": "git", "url": "git+ssh://git@github.com/substack/node-archy.git" }, "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" ] } }, "version": "1.0.0" }