UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

102 lines (101 loc) 5.32 kB
{ "_args": [ [ { "raw": "overlap@2.0.0", "scope": null, "escapedName": "overlap", "name": "overlap", "rawSpec": "2.0.0", "spec": "2.0.0", "type": "version" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/le-table" ] ], "_from": "overlap@2.0.0", "_id": "overlap@2.0.0", "_inCache": true, "_location": "/overlap", "_nodeVersion": "0.12.1", "_npmUser": { "name": "ionicabizau", "email": "bizauionica@gmail.com" }, "_npmVersion": "2.7.6", "_phantomChildren": { "flat-colors": "3.0.0", "x256": "0.0.2" }, "_requested": { "raw": "overlap@2.0.0", "scope": null, "escapedName": "overlap", "name": "overlap", "rawSpec": "2.0.0", "spec": "2.0.0", "type": "version" }, "_requiredBy": [ "/le-table" ], "_resolved": "https://registry.npmjs.org/overlap/-/overlap-2.0.0.tgz", "_shasum": "b29b6bb2ad7569c4e66faef28cb5d74361179cb4", "_shrinkwrap": null, "_spec": "overlap@2.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/le-table", "author": { "name": "Ionică Bizău", "email": "bizauionica@gmail.com" }, "blah": { "h_img": "http://i.imgur.com/iiLhdlD.png", "ex_img": "http://i.imgur.com/TC5QXRt.png" }, "bugs": { "url": "https://github.com/IonicaBizau/node-overlap/issues" }, "dependencies": { "ansi-parser": "3.0.0", "cli-box": "5.0.0", "couleurs": "5.0.0" }, "description": "Overlap two strings that contain new lines. Useful for ASCII drawings.", "devDependencies": { "couleurs": "^5.0.0" }, "directories": { "example": "node example" }, "dist": { "shasum": "b29b6bb2ad7569c4e66faef28cb5d74361179cb4", "tarball": "https://registry.npmjs.org/overlap/-/overlap-2.0.0.tgz" }, "gitHead": "c061b959459e301decf311d42a009cd7a05564ee", "homepage": "https://github.com/IonicaBizau/node-overlap", "keywords": [ "ascii", "node", "overlap" ], "license": "KINDLY", "main": "lib/index.js", "maintainers": [ { "name": "ionicabizau", "email": "bizauionica@yahoo.com" } ], "name": "overlap", "optionalDependencies": {}, "readme": "<!---------------------------------------------------------------------------->\n<!-- STOP, LOOK & LISTEN! -->\n<!-- ==================== -->\n<!-- Do NOT edit this file directly since it's generated from a template -->\n<!-- file, using https://github.com/IonicaBizau/node-blah -->\n<!-- -->\n<!-- If you found a typo in documentation, fix it in the source files -->\n<!-- (`lib/*.js`) and make a pull request. -->\n<!-- -->\n<!-- If you have any other ideas, open an issue. -->\n<!-- -->\n<!-- Please consider reading the contribution steps (CONTRIBUTING.md). -->\n<!-- * * * Thanks! * * * -->\n<!---------------------------------------------------------------------------->\n\n![overlap](http://i.imgur.com/iiLhdlD.png)\n\n# overlap [![Donate now][donate-now]][paypal-donations]\n\nOverlap two strings that contain new lines. Useful for ASCII drawings.\n\n![overlap](http://i.imgur.com/TC5QXRt.png)\n\n## Installation\n\n```sh\n$ npm i overlap\n```\n\n## Example\n\n```js\n// Dependencies\nvar Overlap = require(\"overlap\")\n , Couleurs = require(\"couleurs\")\n , Box = require(\"cli-box\")\n ;\n\n// Create two boxes\nvar box1 = Box(\"20x10\", Couleurs(\"Hello World\", [142, 68, 173]))\n , box2 = Box(\"30x5\", Couleurs(\"Hello Mars!\", \"#c0392b\"))\n ;\n\n// Combine them\nconsole.log(Overlap({\n who: box1\n , with: box2\n , where: {\n x: 17\n , y: 2\n }\n}));\n\n```\n\n## Documentation\n\n### `Overlap(options)`\nOverlaps two strings.\n\n#### Params\n- **Object** `options`: An object containing the following fields:\n - `who` (String): The first string.\n - `with` (String): The second string.\n - `where` (Object): The second string position:\n - `x` (Number): The position on `x` axis.\n - `y` (Number): The position on `y` axis.\n\n#### Return\n- **String** The result string.\n\n## How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n## License\n[KINDLY][license] © [Ionică Bizău][website]–The [LICENSE](/LICENSE) file contains\na copy of the license.\n\n[license]: http://ionicabizau.github.io/kindly-license/?author=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica@gmail.com%3E&year=2015\n[contributing]: /CONTRIBUTING.md\n[website]: http://ionicabizau.net\n[docs]: /DOCUMENTATION.md\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MG98D7NPFZ3MG\n[donate-now]: http://i.imgur.com/jioicaN.png", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/IonicaBizau/node-overlap.git" }, "scripts": { "test": "node example" }, "version": "2.0.0" }