UI for Zipcoin Blue

package.json 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "snapdragon@^0.8.1",
  6. "scope": null,
  7. "escapedName": "snapdragon",
  8. "name": "snapdragon",
  9. "rawSpec": "^0.8.1",
  10. "spec": ">=0.8.1 <0.9.0",
  11. "type": "range"
  12. },
  13. "/Users/tennesseeg/blueCoin/node_modules/watchpack/node_modules/micromatch"
  14. ]
  15. ],
  16. "_from": "snapdragon@>=0.8.1 <0.9.0",
  17. "_id": "snapdragon@0.8.2",
  18. "_inCache": true,
  19. "_location": "/snapdragon",
  20. "_nodeVersion": "9.7.1",
  21. "_npmOperationalInternal": {
  22. "host": "s3://npm-registry-packages",
  23. "tmp": "tmp/snapdragon_0.8.2_1520776598430_0.674348590844402"
  24. },
  25. "_npmUser": {
  26. "name": "jonschlinkert",
  27. "email": "github@sellside.com"
  28. },
  29. "_npmVersion": "5.7.1",
  30. "_phantomChildren": {
  31. "is-descriptor": "0.1.6",
  32. "is-extendable": "0.1.1"
  33. },
  34. "_requested": {
  35. "raw": "snapdragon@^0.8.1",
  36. "scope": null,
  37. "escapedName": "snapdragon",
  38. "name": "snapdragon",
  39. "rawSpec": "^0.8.1",
  40. "spec": ">=0.8.1 <0.9.0",
  41. "type": "range"
  42. },
  43. "_requiredBy": [
  44. "/nanomatch",
  45. "/watchpack/braces",
  46. "/watchpack/expand-brackets",
  47. "/watchpack/extglob",
  48. "/watchpack/micromatch"
  49. ],
  50. "_resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz",
  51. "_shasum": "64922e7c565b0e14204ba1aa7d6964278d25182d",
  52. "_shrinkwrap": null,
  53. "_spec": "snapdragon@^0.8.1",
  54. "_where": "/Users/tennesseeg/blueCoin/node_modules/watchpack/node_modules/micromatch",
  55. "author": {
  56. "name": "Jon Schlinkert",
  57. "url": "https://github.com/jonschlinkert"
  58. },
  59. "bugs": {
  60. "url": "https://github.com/jonschlinkert/snapdragon/issues"
  61. },
  62. "contributors": [
  63. {
  64. "name": "Brian Woodward",
  65. "url": "https://twitter.com/doowb"
  66. },
  67. {
  68. "name": "Edward Betts",
  69. "url": "http://edwardbetts.com"
  70. },
  71. {
  72. "name": "Jon Schlinkert",
  73. "url": "http://twitter.com/jonschlinkert"
  74. }
  75. ],
  76. "dependencies": {
  77. "base": "^0.11.1",
  78. "debug": "^2.2.0",
  79. "define-property": "^0.2.5",
  80. "extend-shallow": "^2.0.1",
  81. "map-cache": "^0.2.2",
  82. "source-map": "^0.5.6",
  83. "source-map-resolve": "^0.5.0",
  84. "use": "^3.1.0"
  85. },
  86. "description": "Fast, pluggable and easy-to-use parser-renderer factory.",
  87. "devDependencies": {
  88. "gulp": "^3.9.1",
  89. "gulp-eslint": "^3.0.1",
  90. "gulp-format-md": "^0.1.10",
  91. "gulp-istanbul": "^1.1.1",
  92. "gulp-mocha": "^3.0.1",
  93. "gulp-unused": "^0.2.0",
  94. "mocha": "^3.0.2"
  95. },
  96. "directories": {},
  97. "dist": {
  98. "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==",
  99. "shasum": "64922e7c565b0e14204ba1aa7d6964278d25182d",
  100. "tarball": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz",
  101. "fileCount": 9,
  102. "unpackedSize": 35228
  103. },
  104. "engines": {
  105. "node": ">=0.10.0"
  106. },
  107. "files": [
  108. "index.js",
  109. "lib"
  110. ],
  111. "gitHead": "6c952b12cabe896a86d9a4fe378f934bccbe6436",
  112. "homepage": "https://github.com/jonschlinkert/snapdragon",
  113. "keywords": [
  114. "lexer",
  115. "snapdragon"
  116. ],
  117. "license": "MIT",
  118. "main": "index.js",
  119. "maintainers": [
  120. {
  121. "name": "doowb",
  122. "email": "brian.woodward@gmail.com"
  123. },
  124. {
  125. "name": "jonschlinkert",
  126. "email": "github@sellside.com"
  127. }
  128. ],
  129. "name": "snapdragon",
  130. "optionalDependencies": {},
  131. "readme": "# snapdragon [![NPM version](https://img.shields.io/npm/v/snapdragon.svg?style=flat)](https://www.npmjs.com/package/snapdragon) [![NPM downloads](https://img.shields.io/npm/dm/snapdragon.svg?style=flat)](https://npmjs.org/package/snapdragon) [![Build Status](https://img.shields.io/travis/jonschlinkert/snapdragon.svg?style=flat)](https://travis-ci.org/jonschlinkert/snapdragon)\n\n> Fast, pluggable and easy-to-use parser-renderer factory.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save snapdragon\n```\n\nCreated by [jonschlinkert](https://github.com/jonschlinkert) and [doowb](https://github.com/doowb).\n\n**Features**\n\n* Bootstrap your own parser, get sourcemap support for free\n* All parsing and compiling is handled by simple, reusable middleware functions\n* Inspired by the parsers in [pug](http://jade-lang.com) and [css](https://github.com/reworkcss/css).\n\n## History\n\n### v0.5.0\n\n**Breaking changes**\n\nSubstantial breaking changes were made in v0.5.0! Most of these changes are part of a larger refactor that will be finished in 0.6.0, including the introduction of a `Lexer` class.\n\n* Renderer was renamed to `Compiler`\n* the `.render` method was renamed to `.compile`\n* Many other smaller changes. A more detailed overview will be provided in 0.6.0. If you don't have to time review code, I recommend you wait for the 0.6.0 release.\n\n## Usage examples\n\n```js\nvar Snapdragon = require('snapdragon');\nvar snapdragon = new Snapdragon();\n```\n\n**Parse**\n\n```js\nvar ast = snapdragon.parser('some string', options)\n // parser middleware that can be called by other middleware\n .set('foo', function () {})\n // parser middleware, runs immediately in the order defined\n .use(bar())\n .use(baz())\n```\n\n**Render**\n\n```js\n// pass the `ast` from the parse method\nvar res = snapdragon.compiler(ast)\n // compiler middleware, called when the name of the middleware\n // matches the `node.type` (defined in a parser middleware)\n .set('bar', function () {})\n .set('baz', function () {})\n .compile()\n```\n\nSee the [examples](./examples/).\n\n## Getting started\n\n**Parsers**\n\nParsers are middleware functions used for parsing a string into an ast node.\n\n```js\nvar ast = snapdragon.parser(str, options)\n .use(function() {\n var pos = this.position();\n var m = this.match(/^\\./);\n if (!m) return;\n return pos({\n // `type` specifies the compiler to use\n type: 'dot',\n val: m[0]\n });\n })\n```\n\n**AST node**\n\nWhen the parser finds a match, `pos()` is called, pushing a token for that node onto the ast that looks something like:\n\n```js\n{ type: 'dot',\n val: '.',\n position:\n { start: { lineno: 1, column: 1 },\n end: { lineno: 1, column: 2 } }}\n```\n\n**Renderers**\n\nRenderers are _named_ middleware functions that visit over an array of ast nodes to compile a string.\n\n```js\nvar res = snapdragon.compiler(ast)\n .set('dot', function (node) {\n console.log(node.val)\n //=> '.'\n return this.emit(node.val);\n })\n```\n\n**Source maps**\n\nIf you want source map support, make sure to emit the position as well.\n\n```js\nvar res = snapdragon.compiler(ast)\n .set('dot', function (node) {\n return this.emit(node.val, node.position);\n })\n```\n\n## Docs\n\n### Parser middleware\n\nA parser middleware is a function that returns an abject called a `token`. This token is pushed onto the AST as a node.\n\n**Example token**\n\n```js\n{ type: 'dot',\n val: '.',\n position:\n { start: { lineno: 1, column: 1 },\n end: { lineno: 1, column: 2 } }}\n```\n\n**Example parser middleware**\n\nMatch a single `.` in a string:\n\n1. Get the starting position by calling `this.position()`\n2. pass a regex for matching a single dot to the `.match` method\n3. if **no match** is found, return `undefined`\n4. if a **match** is found, `pos()` is called, which returns a token with:\n - `type`: the name of the [compiler] to use\n - `val`: The actual value captured by the regex. In this case, a `.`. Note that you can capture and return whatever will be needed by the corresponding [compiler].\n - The ending position: automatically calculated by adding the length of the first capture group to the starting position.\n\n## Renderer middleware\n\nRenderers are run when the name of the compiler middleware matches the `type` defined on an ast `node` (which is defined in a parser).\n\n**Example**\n\nExercise: Parse a dot, then compile it as an escaped dot.\n\n```js\nvar ast = snapdragon.parser('.')\n .use(function () {\n var pos = this.position();\n var m = this.match(/^\\./);\n if (!m) return;\n return pos({\n // define the `type` of compiler to use\n type: 'dot',\n val: m[0]\n })\n })\n\nvar result = snapdragon.compiler(ast)\n .set('dot', function (node) {\n return this.emit('\\\\' + node.val);\n })\n .compile()\n\nconsole.log(result.output);\n//=> '\\.'\n```\n\n## API\n\n### [Parser](lib/parser.js#L19)\n\nCreate a new `Parser` with the given `input` and `options`.\n\n**Params**\n\n* `input` **{String}**\n* `options` **{Object}**\n\n### [.define](lib/parser.js#L103)\n\nDefine a non-enumberable property on the `Parser` instance.\n\n**Example**\n\n```js\nparser.define('foo', 'bar');\n```\n\n**Params**\n\n* `key` **{String}**: propery name\n* `val` **{any}**: property value\n* `returns` **{Object}**: Returns the Parser instance for chaining.\n\nSet parser `name` with the given `fn`\n\n**Params**\n\n* `name` **{String}**\n* `fn` **{Function}**\n\nGet parser `name`\n\n**Params**\n\n* `name` **{String}**\n\nPush a `token` onto the `type` stack.\n\n**Params**\n\n* `type` **{String}**\n* `returns` **{Object}** `token`\n\nPop a token off of the `type` stack\n\n**Params**\n\n* `type` **{String}**\n* `returns` **{Object}**: Returns a token\n\nReturn true if inside a `stack` node. Types are `braces`, `parens` or `brackets`.\n\n**Params**\n\n* `type` **{String}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nparser.isType(node, 'brace');\n```\n\n**Params**\n\n* `node` **{Object}**\n* `type` **{String}**\n* `returns` **{Boolean}**\n\n### [.define](lib/compiler.js#L71)\n\nDefine a non-enumberable property on the `Compiler` instance.\n\n**Example**\n\n```js\ncompiler.define('foo', 'bar');\n```\n\n**Params**\n\n* `key` **{String}**: propery name\n* `val` **{any}**: property value\n* `returns` **{Object}**: Returns the Compiler instance for chaining.\n\n## About\n\n### Related projects\n\n* [braces](https://www.npmjs.com/package/braces): Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces… [more](https://github.com/jonschlinkert/braces) | [homepage](https://github.com/jonschlinkert/braces \"Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.\")\n* [expand-brackets](https://www.npmjs.com/package/expand-brackets): Expand POSIX bracket expressions (character classes) in glob patterns. | [homepage](https://github.com/jonschlinkert/expand-brackets \"Expand POSIX bracket expressions (character classes) in glob patterns.\")\n* [extglob](https://www.npmjs.com/package/extglob): Convert extended globs to regex-compatible strings. Add (almost) the expressive power of regular expressions to… [more](https://github.com/jonschlinkert/extglob) | [homepage](https://github.com/jonschlinkert/extglob \"Convert extended globs to regex-compatible strings. Add (almost) the expressive power of regular expressions to glob patterns.\")\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch \"Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor**<br/> | \n| --- | --- |\n| 106 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [doowb](https://github.com/doowb) |\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/snapdragon/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 10, 2016._",
  132. "readmeFilename": "README.md",
  133. "repository": {
  134. "type": "git",
  135. "url": "git+https://github.com/jonschlinkert/snapdragon.git"
  136. },
  137. "scripts": {
  138. "test": "mocha"
  139. },
  140. "verb": {
  141. "toc": false,
  142. "layout": "default",
  143. "tasks": [
  144. "readme"
  145. ],
  146. "plugins": [
  147. "gulp-format-md"
  148. ],
  149. "related": {
  150. "description": "These libraries use snapdragon:",
  151. "list": [
  152. "braces",
  153. "expand-brackets",
  154. "extglob",
  155. "micromatch"
  156. ]
  157. },
  158. "reflinks": [
  159. "css",
  160. "pug",
  161. "verb",
  162. "verb-generate-readme"
  163. ],
  164. "lint": {
  165. "reflinks": true
  166. }
  167. },
  168. "version": "0.8.2"
  169. }