{ "_id": "snapdragon-util", "_rev": "18-32352b269c161e57eb183aca44ab580e", "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "dist-tags": { "latest": "5.0.1" }, "versions": { "0.1.0": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "0.1.0", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0" }, "keywords": [ "generategenerator", "snapdragon", "util" ], "verb": { "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "_id": "snapdragon-util@0.1.0", "_shasum": "a152d283865e73d5638a98edeb5f224f687a80b7", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "a152d283865e73d5638a98edeb5f224f687a80b7", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-0.1.0.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/snapdragon-util-0.1.0.tgz_1484817267822_0.4896240758243948" }, "directories": {} }, "0.1.1": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "0.1.1", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0" }, "keywords": [ "generategenerator", "snapdragon", "util" ], "verb": { "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "0cb64c7061d028a1634109685a70c627c31f3eb4", "_id": "snapdragon-util@0.1.1", "_shasum": "2384b8d846f17d8200673d82310ef746cfdb5321", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "2384b8d846f17d8200673d82310ef746cfdb5321", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-0.1.1.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/snapdragon-util-0.1.1.tgz_1484963812695_0.42882254370488226" }, "directories": {} }, "1.0.0": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "1.0.0", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0", "snapdragon-node": "^1.0.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0" }, "keywords": [ "generategenerator", "snapdragon", "util" ], "verb": { "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "a0fa648149d2d0e2a35fbe5eeec039fbf1b9df88", "_id": "snapdragon-util@1.0.0", "_shasum": "4d95397268269edc2a79bfa391dff30d2e548727", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "4d95397268269edc2a79bfa391dff30d2e548727", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-1.0.0.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/snapdragon-util-1.0.0.tgz_1484992615532_0.5757098200265318" }, "directories": {} }, "1.0.1": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "1.0.1", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0", "snapdragon-node": "^1.0.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.9.0" }, "keywords": [ "generategenerator", "snapdragon", "util" ], "verb": { "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "e58a940b8cfadf72f64192622521527c91faf3ef", "_id": "snapdragon-util@1.0.1", "_shasum": "446fcc004a587b97193a5243a6f735b5442d33f9", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "446fcc004a587b97193a5243a6f735b5442d33f9", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-1.0.1.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-1.0.1.tgz_1484993200462_0.14513341896235943" }, "directories": {} }, "1.0.2": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "1.0.2", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0", "snapdragon-node": "^1.0.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.9.0", "snapdragon-capture-set": "^1.0.1" }, "keywords": [ "capture", "match", "parse", "parser", "plugin", "snapdragon", "snapdragonplugin", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "0a6cdd8e93d57a1e8980446b77e7c57e5da3b131", "_id": "snapdragon-util@1.0.2", "_shasum": "f49d083e74b22b519dd7aaf6c92a1c5dd198d781", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "f49d083e74b22b519dd7aaf6c92a1c5dd198d781", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-1.0.2.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-1.0.2.tgz_1484995521243_0.22518426459282637" }, "directories": {} }, "1.0.3": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "1.0.3", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0", "snapdragon-node": "^1.0.3" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.9.0", "snapdragon-capture-set": "^1.0.1" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "255fdddd9a9d670ba97c6cd3eb7e55eb3ca2a772", "_id": "snapdragon-util@1.0.3", "_shasum": "9478f785bdec55e11db0efcc8e735b3bb95ed1e0", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "9478f785bdec55e11db0efcc8e735b3bb95ed1e0", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-1.0.3.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-1.0.3.tgz_1486057670224_0.6658729165792465" }, "directories": {} }, "1.0.4": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "1.0.4", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0", "snapdragon-node": "^1.0.3" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.9.0", "snapdragon-capture-set": "^1.0.1" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "1f168dd0aa036cc8770790b5a0afb31dcf8cb76d", "_id": "snapdragon-util@1.0.4", "_shasum": "343efb9ad160adbf4eec4f2434e0eaae6e245e88", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "343efb9ad160adbf4eec4f2434e0eaae6e245e88", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-1.0.4.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-1.0.4.tgz_1486278728009_0.7380673007573932" }, "directories": {} }, "1.0.5": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "1.0.5", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0", "snapdragon-node": "^1.0.3" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.9.0", "snapdragon-capture-set": "^1.0.1" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "3c65011218f9aa6d5380d746686dd4b37f593725", "_id": "snapdragon-util@1.0.5", "_shasum": "32398a91f8b12bd031d569ec2e5308355c9abe41", "_from": ".", "_npmVersion": "3.10.9", "_nodeVersion": "6.9.2", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "32398a91f8b12bd031d569ec2e5308355c9abe41", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-1.0.5.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-1.0.5.tgz_1486278770461_0.9841277650557458" }, "directories": {} }, "1.0.6": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "1.0.6", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js", "utils.js" ], "main": "index.js", "engines": { "node": ">=4.7" }, "scripts": { "test": "mocha" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0", "lazy-cache": "^2.0.2", "snapdragon-node": "^1.0.6" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.10.1", "snapdragon-capture-set": "^1.0.1" }, "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "a8ee4265c9fd7638cadcd5159c023d7b877b83a6", "_id": "snapdragon-util@1.0.6", "_shasum": "8b3d2d6dec8930c90e054ba052e562ca1b3a621e", "_from": ".", "_npmVersion": "4.1.2", "_nodeVersion": "7.5.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "8b3d2d6dec8930c90e054ba052e562ca1b3a621e", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-1.0.6.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-1.0.6.tgz_1487185217022_0.9143254722002894" }, "directories": {} }, "2.0.0": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "2.0.0", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js", "utils.js" ], "main": "index.js", "engines": { "node": ">=4.7" }, "scripts": { "test": "mocha" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.10.1", "snapdragon-capture-set": "^1.0.1", "snapdragon-node": "^1.0.6" }, "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "b3e30f746b3a6ff746a615129c64827cc75c661d", "_id": "snapdragon-util@2.0.0", "_shasum": "7e43ed71c0c77e4127db46dcb0550d585d25e46e", "_from": ".", "_npmVersion": "4.1.2", "_nodeVersion": "7.5.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "7e43ed71c0c77e4127db46dcb0550d585d25e46e", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-2.0.0.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-2.0.0.tgz_1487186734480_0.6906527932733297" }, "directories": {} }, "2.1.0": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "2.1.0", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4.7" }, "scripts": { "test": "mocha" }, "dependencies": { "define-property": "^0.2.5", "kind-of": "^3.1.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.10.1", "snapdragon-capture-set": "^1.0.1", "snapdragon-node": "^1.0.6" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "90d901a935cd98836e5a239f6ea6e7f9be0efce8", "_id": "snapdragon-util@2.1.0", "_shasum": "cabb0e457018eeeaf1182dc42c332bf4a7141d2e", "_from": ".", "_npmVersion": "4.1.2", "_nodeVersion": "7.5.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "cabb0e457018eeeaf1182dc42c332bf4a7141d2e", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-2.1.0.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-2.1.0.tgz_1488139830058_0.032811991404742" }, "directories": {} }, "2.1.1": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "2.1.1", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=4.7" }, "scripts": { "test": "mocha" }, "dependencies": { "kind-of": "^3.1.0" }, "devDependencies": { "gulp-format-md": "^0.1.11", "mocha": "^3.2.0", "snapdragon": "^0.10.1", "snapdragon-capture-set": "^1.0.1", "snapdragon-node": "^1.0.6" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true }, "related": { "list": [] }, "reflinks": [ "verb", "verb-generate-readme" ] }, "gitHead": "0ea032c8ea02010338568e82e8510a4054966203", "_id": "snapdragon-util@2.1.1", "_shasum": "552779df8a1493a0e78c06cc80953a262770957a", "_from": ".", "_npmVersion": "4.1.2", "_nodeVersion": "7.6.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "552779df8a1493a0e78c06cc80953a262770957a", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-2.1.1.tgz" }, "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/snapdragon-util-2.1.1.tgz_1488660854816_0.24682563240639865" }, "directories": {} }, "3.0.0": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "3.0.0", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "kind-of": "^3.2.0" }, "devDependencies": { "define-property": "^1.0.0", "gulp": "^3.9.1", "gulp-eslint": "^3.0.1", "gulp-format-md": "^0.1.12", "gulp-istanbul": "^1.1.1", "gulp-mocha": "^3.0.0", "isobject": "^3.0.0", "mocha": "^3.3.0", "snapdragon": "^0.11.0", "snapdragon-node": "^1.0.6" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "48b72a87a26736d2a8df22f7294fb1a41ae6a9de", "_id": "snapdragon-util@3.0.0", "_shasum": "0ac6288d8409e45d04fd1034e0bb745701cae9c0", "_from": ".", "_npmVersion": "4.2.0", "_nodeVersion": "7.7.3", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "0ac6288d8409e45d04fd1034e0bb745701cae9c0", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.0.tgz" }, "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/snapdragon-util-3.0.0.tgz_1493638981660_0.6029416942037642" }, "directories": {} }, "3.0.1": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "3.0.1", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "kind-of": "^3.2.0" }, "devDependencies": { "define-property": "^1.0.0", "gulp": "^3.9.1", "gulp-eslint": "^3.0.1", "gulp-format-md": "^0.1.12", "gulp-istanbul": "^1.1.1", "gulp-mocha": "^3.0.0", "isobject": "^3.0.0", "mocha": "^3.3.0", "snapdragon": "^0.11.0", "snapdragon-node": "^1.0.6" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "toc": "collapsible", "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "1655d7f02f5957ebddc9cc7757a25bf8f221e5a7", "_id": "snapdragon-util@3.0.1", "_npmVersion": "5.0.3", "_nodeVersion": "7.7.3", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", "shasum": "f956479486f2acd79700693f6f7b805e45ab56e2", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/snapdragon-util-3.0.1.tgz_1498383999677_0.4173418020363897" }, "directories": {} }, "4.0.0": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "4.0.0", "homepage": "https://github.com/jonschlinkert/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "contributors": [ { "name": "Jon Schlinkert", "url": "http://twitter.com/jonschlinkert" }, { "name": "Rouven Weßling", "url": "www.rouvenwessling.de" } ], "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/snapdragon-util.git" }, "bugs": { "url": "https://github.com/jonschlinkert/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "kind-of": "^6.0.0" }, "devDependencies": { "define-property": "^1.0.0", "gulp": "^3.9.1", "gulp-eslint": "^4.0.0", "gulp-format-md": "^1.0.0", "gulp-istanbul": "^1.1.2", "gulp-mocha": "^3.0.1", "isobject": "^3.0.1", "mocha": "^3.5.3", "snapdragon": "^0.11.0", "snapdragon-node": "^2.1.1" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "51ebbd9ea96455a075d304ad7fbb9701ba9955a0", "_id": "snapdragon-util@4.0.0", "_npmVersion": "5.5.1", "_nodeVersion": "8.7.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "dist": { "integrity": "sha512-EthB2f44R7/fdbUrGmlOIJ15k5nkC3/LvWaD6u7wu9fo4Eabk7qq1MTkSGoTWWm1hxb2lxG/r9H3KKhhNOGkgw==", "shasum": "49c858a089174abe7b8d186a367424823167446a", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-4.0.0.tgz" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/snapdragon-util-4.0.0.tgz_1509518278524_0.9129899861291051" }, "directories": {} }, "5.0.0": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "5.0.0", "homepage": "https://github.com/here-be/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "contributors": [ { "name": "Jon Schlinkert", "url": "http://twitter.com/jonschlinkert" }, { "name": "Rouven Weßling", "url": "www.rouvenwessling.de" } ], "repository": { "type": "git", "url": "git+https://github.com/here-be/snapdragon-util.git" }, "bugs": { "url": "https://github.com/here-be/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "kind-of": "^6.0.2" }, "devDependencies": { "define-property": "^2.0.0", "gulp": "^3.9.1", "gulp-eslint": "^4.0.1", "gulp-format-md": "^1.0.0", "gulp-istanbul": "^1.1.3", "gulp-mocha": "^5.0.0", "isobject": "^3.0.1", "mocha": "^3.5.3", "snapdragon": "^0.11.0" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "layout": "default", "tasks": [ "readme" ], "related": { "list": [ "snapdragon-node", "snapdragon-position", "snapdragon-token" ] }, "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "c17a41eb646e95cf9a53297efa12089adf40febf", "_id": "snapdragon-util@5.0.0", "_npmVersion": "5.6.0", "_nodeVersion": "9.1.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "dist": { "integrity": "sha512-ke2RjTrbCn1sh2FzoONPnKatBpemhg4XskLz7nBhDREaiEvztFtCrSAb2Kn55h3B5pTvD1q5Pw36nmOIo1Ascw==", "shasum": "630c326a5e021166109dcc23ea6e7ccd60feab08", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-5.0.0.tgz" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/snapdragon-util-5.0.0.tgz_1515661422107_0.8418538775295019" }, "directories": {} }, "5.0.1": { "name": "snapdragon-util", "description": "Utilities for the snapdragon parser/compiler.", "version": "5.0.1", "homepage": "https://github.com/here-be/snapdragon-util", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "contributors": [ { "name": "Jon Schlinkert", "url": "http://twitter.com/jonschlinkert" }, { "name": "Rouven Weßling", "url": "www.rouvenwessling.de" } ], "repository": { "type": "git", "url": "git+https://github.com/here-be/snapdragon-util.git" }, "bugs": { "url": "https://github.com/here-be/snapdragon-util/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=6" }, "scripts": { "test": "mocha" }, "dependencies": { "kind-of": "^6.0.2" }, "devDependencies": { "define-property": "^2.0.0", "gulp": "^3.9.1", "gulp-eslint": "^4.0.1", "gulp-format-md": "^1.0.0", "gulp-istanbul": "^1.1.3", "gulp-mocha": "^5.0.0", "isobject": "^3.0.1", "mocha": "^3.5.3", "snapdragon": "^0.11.0" }, "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "verb": { "layout": "default", "tasks": [ "readme" ], "related": { "list": [ "snapdragon-node", "snapdragon-position", "snapdragon-token" ] }, "plugins": [ "gulp-format-md" ], "lint": { "reflinks": true } }, "gitHead": "ca133741eafd65bac5351587da7376c32b15d6c2", "_id": "snapdragon-util@5.0.1", "_npmVersion": "5.6.0", "_nodeVersion": "9.1.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "dist": { "integrity": "sha512-0F6MbgMMKw37GfnJjrNX4WbNdAacz+I7mzgVLKPa4sB9zQ7XeMVtaqoDrrSv2sHnhX5noL55tZSaHI5FQOLGMQ==", "shasum": "281f1114bdd3c90b46585783a2e4d4eb684fa200", "tarball": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-5.0.1.tgz" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/snapdragon-util-5.0.1.tgz_1515661466032_0.7892721705138683" }, "directories": {} } }, "readme": "# snapdragon-util [![NPM version](https://img.shields.io/npm/v/snapdragon-util.svg?style=flat)](https://www.npmjs.com/package/snapdragon-util) [![NPM monthly downloads](https://img.shields.io/npm/dm/snapdragon-util.svg?style=flat)](https://npmjs.org/package/snapdragon-util) [![NPM total downloads](https://img.shields.io/npm/dt/snapdragon-util.svg?style=flat)](https://npmjs.org/package/snapdragon-util) [![Linux Build Status](https://img.shields.io/travis/here-be/snapdragon-util.svg?style=flat&label=Travis)](https://travis-ci.org/here-be/snapdragon-util)\n\n> Utilities for the snapdragon parser/compiler.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save snapdragon-util\n```\n\n## Usage\n\n```js\nvar util = require('snapdragon-util');\n```\n\n## API\n\n### [.isNode](index.js#L20)\n\nReturns true if the given value is a node.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar node = new Node({type: 'foo'});\nconsole.log(utils.isNode(node)); //=> true\nconsole.log(utils.isNode({})); //=> false\n```\n\n### [.noop](index.js#L36)\n\nEmit an empty string for the given `node`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{undefined}**\n\n**Example**\n\n```js\n// do nothing for beginning-of-string\nsnapdragon.compiler.set('bos', utils.noop);\n```\n\n### [.value](index.js#L54)\n\nReturns `node.value` or `node.val`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{String}**: returns\n\n**Example**\n\n```js\nconst star = new Node({type: 'star', value: '*'});\nconst slash = new Node({type: 'slash', val: '/'});\nconsole.log(utils.value(star)) //=> '*'\nconsole.log(utils.value(slash)) //=> '/'\n```\n\n### [.identity](index.js#L72)\n\nAppend `node.value` to `compiler.output`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{undefined}**\n\n**Example**\n\n```js\nsnapdragon.compiler.set('text', utils.identity);\n```\n\n### [.append](index.js#L95)\n\nPreviously named `.emit`, this method appends the given `value` to `compiler.output` for the given node. Useful when you know what value should be appended advance, regardless of the actual value of `node.value`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Function}**: Returns a compiler middleware function.\n\n**Example**\n\n```js\nsnapdragon.compiler\n .set('i', function(node) {\n this.mapVisit(node);\n })\n .set('i.open', utils.append(''))\n .set('i.close', utils.append(''))\n```\n\n### [.toNoop](index.js#L118)\n\nUsed in compiler middleware, this onverts an AST node into an empty `text` node and deletes `node.nodes` if it exists. The advantage of this method is that, as opposed to completely removing the node, indices will not need to be re-calculated in sibling nodes, and nothing is appended to the output.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `nodes` **{Array}**: Optionally pass a new `nodes` value, to replace the existing `node.nodes` array.\n\n**Example**\n\n```js\nutils.toNoop(node);\n// convert `node.nodes` to the given value instead of deleting it\nutils.toNoop(node, []);\n```\n\n### [.visit](index.js#L147)\n\nVisit `node` with the given `fn`. The built-in `.visit` method in snapdragon automatically calls registered compilers, this allows you to pass a visitor function.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `fn` **{Function}**\n* `returns` **{Object}**: returns the node after recursively visiting all child nodes.\n\n**Example**\n\n```js\nsnapdragon.compiler.set('i', function(node) {\n utils.visit(node, function(childNode) {\n // do stuff with \"childNode\"\n return childNode;\n });\n});\n```\n\n### [.mapVisit](index.js#L174)\n\nMap [visit](#visit) the given `fn` over `node.nodes`. This is called by [visit](#visit), use this method if you do not want `fn` to be called on the first node.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `options` **{Object}**\n* `fn` **{Function}**\n* `returns` **{Object}**: returns the node\n\n**Example**\n\n```js\nsnapdragon.compiler.set('i', function(node) {\n utils.mapVisit(node, function(childNode) {\n // do stuff with \"childNode\"\n return childNode;\n });\n});\n```\n\n### [.addOpen](index.js#L213)\n\nUnshift an `*.open` node onto `node.nodes`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `Node` **{Function}**: (required) Node constructor function from [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node).\n* `filter` **{Function}**: Optionaly specify a filter function to exclude the node.\n* `returns` **{Object}**: Returns the created opening node.\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nsnapdragon.parser.set('brace', function(node) {\n var match = this.match(/^{/);\n if (match) {\n var parent = new Node({type: 'brace'});\n utils.addOpen(parent, Node);\n console.log(parent.nodes[0]):\n // { type: 'brace.open', value: '' };\n\n // push the parent \"brace\" node onto the stack\n this.push(parent);\n\n // return the parent node, so it's also added to the AST\n return brace;\n }\n});\n```\n\n### [.addClose](index.js#L263)\n\nPush a `*.close` node onto `node.nodes`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `Node` **{Function}**: (required) Node constructor function from [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node).\n* `filter` **{Function}**: Optionaly specify a filter function to exclude the node.\n* `returns` **{Object}**: Returns the created closing node.\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nsnapdragon.parser.set('brace', function(node) {\n var match = this.match(/^}/);\n if (match) {\n var parent = this.parent();\n if (parent.type !== 'brace') {\n throw new Error('missing opening: ' + '}');\n }\n\n utils.addClose(parent, Node);\n console.log(parent.nodes[parent.nodes.length - 1]):\n // { type: 'brace.close', value: '' };\n\n // no need to return a node, since the parent\n // was already added to the AST\n return;\n }\n});\n```\n\n### [.wrapNodes](index.js#L293)\n\nWraps the given `node` with `*.open` and `*.close` nodes.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `Node` **{Function}**: (required) Node constructor function from [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node).\n* `filter` **{Function}**: Optionaly specify a filter function to exclude the node.\n* `returns` **{Object}**: Returns the node\n\n### [.pushNode](index.js#L318)\n\nPush the given `node` onto `parent.nodes`, and set `parent` as `node.parent.\n\n**Params**\n\n* `parent` **{Object}**\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Object}**: Returns the child node\n\n**Example**\n\n```js\nvar parent = new Node({type: 'foo'});\nvar node = new Node({type: 'bar'});\nutils.pushNode(parent, node);\nconsole.log(parent.nodes[0].type) // 'bar'\nconsole.log(node.parent.type) // 'foo'\n```\n\n### [.unshiftNode](index.js#L348)\n\nUnshift `node` onto `parent.nodes`, and set `parent` as `node.parent.\n\n**Params**\n\n* `parent` **{Object}**\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{undefined}**\n\n**Example**\n\n```js\nvar parent = new Node({type: 'foo'});\nvar node = new Node({type: 'bar'});\nutils.unshiftNode(parent, node);\nconsole.log(parent.nodes[0].type) // 'bar'\nconsole.log(node.parent.type) // 'foo'\n```\n\n### [.popNode](index.js#L381)\n\nPop the last `node` off of `parent.nodes`. The advantage of using this method is that it checks for `node.nodes` and works with any version of `snapdragon-node`.\n\n**Params**\n\n* `parent` **{Object}**\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Number|Undefined}**: Returns the length of `node.nodes` or undefined.\n\n**Example**\n\n```js\nvar parent = new Node({type: 'foo'});\nutils.pushNode(parent, new Node({type: 'foo'}));\nutils.pushNode(parent, new Node({type: 'bar'}));\nutils.pushNode(parent, new Node({type: 'baz'}));\nconsole.log(parent.nodes.length); //=> 3\nutils.popNode(parent);\nconsole.log(parent.nodes.length); //=> 2\n```\n\n### [.shiftNode](index.js#L409)\n\nShift the first `node` off of `parent.nodes`. The advantage of using this method is that it checks for `node.nodes` and works with any version of `snapdragon-node`.\n\n**Params**\n\n* `parent` **{Object}**\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Number|Undefined}**: Returns the length of `node.nodes` or undefined.\n\n**Example**\n\n```js\nvar parent = new Node({type: 'foo'});\nutils.pushNode(parent, new Node({type: 'foo'}));\nutils.pushNode(parent, new Node({type: 'bar'}));\nutils.pushNode(parent, new Node({type: 'baz'}));\nconsole.log(parent.nodes.length); //=> 3\nutils.shiftNode(parent);\nconsole.log(parent.nodes.length); //=> 2\n```\n\n### [.removeNode](index.js#L436)\n\nRemove the specified `node` from `parent.nodes`.\n\n**Params**\n\n* `parent` **{Object}**\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Object|undefined}**: Returns the removed node, if successful, or undefined if it does not exist on `parent.nodes`.\n\n**Example**\n\n```js\nvar parent = new Node({type: 'abc'});\nvar foo = new Node({type: 'foo'});\nutils.pushNode(parent, foo);\nutils.pushNode(parent, new Node({type: 'bar'}));\nutils.pushNode(parent, new Node({type: 'baz'}));\nconsole.log(parent.nodes.length); //=> 3\nutils.removeNode(parent, foo);\nconsole.log(parent.nodes.length); //=> 2\n```\n\n### [.isType](index.js#L467)\n\nReturns true if `node.type` matches the given `type`. Throws a `TypeError` if `node` is not an instance of `Node`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `type` **{String}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar node = new Node({type: 'foo'});\nconsole.log(utils.isType(node, 'foo')); // false\nconsole.log(utils.isType(node, 'bar')); // true\n```\n\n### [.hasType](index.js#L509)\n\nReturns true if the given `node` has the given `type` in `node.nodes`. Throws a `TypeError` if `node` is not an instance of `Node`.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `type` **{String}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar node = new Node({\n type: 'foo',\n nodes: [\n new Node({type: 'bar'}),\n new Node({type: 'baz'})\n ]\n});\nconsole.log(utils.hasType(node, 'xyz')); // false\nconsole.log(utils.hasType(node, 'baz')); // true\n```\n\n### [.firstOfType](index.js#L542)\n\nReturns the first node from `node.nodes` of the given `type`\n\n**Params**\n\n* `nodes` **{Array}**\n* `type` **{String}**\n* `returns` **{Object|undefined}**: Returns the first matching node or undefined.\n\n**Example**\n\n```js\nvar node = new Node({\n type: 'foo',\n nodes: [\n new Node({type: 'text', value: 'abc'}),\n new Node({type: 'text', value: 'xyz'})\n ]\n});\n\nvar textNode = utils.firstOfType(node.nodes, 'text');\nconsole.log(textNode.value);\n//=> 'abc'\n```\n\n### [.findNode](index.js#L578)\n\nReturns the node at the specified index, or the first node of the given `type` from `node.nodes`.\n\n**Params**\n\n* `nodes` **{Array}**\n* `type` **{String|Number}**: Node type or index.\n* `returns` **{Object}**: Returns a node or undefined.\n\n**Example**\n\n```js\nvar node = new Node({\n type: 'foo',\n nodes: [\n new Node({type: 'text', value: 'abc'}),\n new Node({type: 'text', value: 'xyz'})\n ]\n});\n\nvar nodeOne = utils.findNode(node.nodes, 'text');\nconsole.log(nodeOne.value);\n//=> 'abc'\n\nvar nodeTwo = utils.findNode(node.nodes, 1);\nconsole.log(nodeTwo.value);\n//=> 'xyz'\n```\n\n### [.isOpen](index.js#L602)\n\nReturns true if the given node is an \"*.open\" node.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar brace = new Node({type: 'brace'});\nvar open = new Node({type: 'brace.open'});\nvar close = new Node({type: 'brace.close'});\n\nconsole.log(utils.isOpen(brace)); // false\nconsole.log(utils.isOpen(open)); // true\nconsole.log(utils.isOpen(close)); // false\n```\n\n### [.isClose](index.js#L631)\n\nReturns true if the given node is a \"*.close\" node.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar brace = new Node({type: 'brace'});\nvar open = new Node({type: 'brace.open'});\nvar close = new Node({type: 'brace.close'});\n\nconsole.log(utils.isClose(brace)); // false\nconsole.log(utils.isClose(open)); // false\nconsole.log(utils.isClose(close)); // true\n```\n\n### [.isBlock](index.js#L662)\n\nReturns true if the given node is an \"*.open\" node.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar brace = new Node({type: 'brace'});\nvar open = new Node({type: 'brace.open', value: '{'});\nvar inner = new Node({type: 'text', value: 'a,b,c'});\nvar close = new Node({type: 'brace.close', value: '}'});\nbrace.push(open);\nbrace.push(inner);\nbrace.push(close);\n\nconsole.log(utils.isBlock(brace)); // true\n```\n\n### [.hasNode](index.js#L691)\n\nReturns true if `parent.nodes` has the given `node`.\n\n**Params**\n\n* `type` **{String}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nconst foo = new Node({type: 'foo'});\nconst bar = new Node({type: 'bar'});\ncosole.log(util.hasNode(foo, bar)); // false\nfoo.push(bar);\ncosole.log(util.hasNode(foo, bar)); // true\n```\n\n### [.hasOpen](index.js#L723)\n\nReturns true if `node.nodes` **has** an `.open` node\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar brace = new Node({\n type: 'brace',\n nodes: []\n});\n\nvar open = new Node({type: 'brace.open'});\nconsole.log(utils.hasOpen(brace)); // false\n\nbrace.pushNode(open);\nconsole.log(utils.hasOpen(brace)); // true\n```\n\n### [.hasClose](index.js#L754)\n\nReturns true if `node.nodes` **has** a `.close` node\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar brace = new Node({\n type: 'brace',\n nodes: []\n});\n\nvar close = new Node({type: 'brace.close'});\nconsole.log(utils.hasClose(brace)); // false\n\nbrace.pushNode(close);\nconsole.log(utils.hasClose(brace)); // true\n```\n\n### [.hasOpenAndClose](index.js#L789)\n\nReturns true if `node.nodes` has both `.open` and `.close` nodes\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar Node = require('snapdragon-node');\nvar brace = new Node({\n type: 'brace',\n nodes: []\n});\n\nvar open = new Node({type: 'brace.open'});\nvar close = new Node({type: 'brace.close'});\nconsole.log(utils.hasOpen(brace)); // false\nconsole.log(utils.hasClose(brace)); // false\n\nbrace.pushNode(open);\nbrace.pushNode(close);\nconsole.log(utils.hasOpen(brace)); // true\nconsole.log(utils.hasClose(brace)); // true\n```\n\n### [.addType](index.js#L811)\n\nPush the given `node` onto the `state.inside` array for the given type. This array is used as a specialized \"stack\" for only the given `node.type`.\n\n**Params**\n\n* `state` **{Object}**: The `compiler.state` object or custom state object.\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Array}**: Returns the `state.inside` stack for the given type.\n\n**Example**\n\n```js\nvar state = { inside: {}};\nvar node = new Node({type: 'brace'});\nutils.addType(state, node);\nconsole.log(state.inside);\n//=> { brace: [{type: 'brace'}] }\n```\n\n### [.removeType](index.js#L851)\n\nRemove the given `node` from the `state.inside` array for the given type. This array is used as a specialized \"stack\" for only the given `node.type`.\n\n**Params**\n\n* `state` **{Object}**: The `compiler.state` object or custom state object.\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `returns` **{Array}**: Returns the `state.inside` stack for the given type.\n\n**Example**\n\n```js\nvar state = { inside: {}};\nvar node = new Node({type: 'brace'});\nutils.addType(state, node);\nconsole.log(state.inside);\n//=> { brace: [{type: 'brace'}] }\nutils.removeType(state, node);\n//=> { brace: [] }\n```\n\n### [.isEmpty](index.js#L880)\n\nReturns true if `node.value` is an empty string, or `node.nodes` does not contain any non-empty text nodes.\n\n**Params**\n\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `fn` **{Function}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar node = new Node({type: 'text'});\nutils.isEmpty(node); //=> true\nnode.value = 'foo';\nutils.isEmpty(node); //=> false\n```\n\n### [.isInsideType](index.js#L922)\n\nReturns true if the `state.inside` stack for the given type exists and has one or more nodes on it.\n\n**Params**\n\n* `state` **{Object}**\n* `type` **{String}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar state = { inside: {}};\nvar node = new Node({type: 'brace'});\nconsole.log(utils.isInsideType(state, 'brace')); //=> false\nutils.addType(state, node);\nconsole.log(utils.isInsideType(state, 'brace')); //=> true\nutils.removeType(state, node);\nconsole.log(utils.isInsideType(state, 'brace')); //=> false\n```\n\n### [.isInside](index.js#L956)\n\nReturns true if `node` is either a child or grand-child of the given `type`, or `state.inside[type]` is a non-empty array.\n\n**Params**\n\n* `state` **{Object}**: Either the `compiler.state` object, if it exists, or a user-supplied state object.\n* `node` **{Object}**: Instance of [snapdragon-node](https://github.com/jonschlinkert/snapdragon-node)\n* `type` **{String}**: The `node.type` to check for.\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nvar state = { inside: {}};\nvar node = new Node({type: 'brace'});\nvar open = new Node({type: 'brace.open'});\nconsole.log(utils.isInside(state, open, 'brace')); //=> false\nutils.pushNode(node, open);\nconsole.log(utils.isInside(state, open, 'brace')); //=> true\n```\n\n### [.last](index.js#L1004)\n\nGet the last `n` element from the given `array`. Used for getting\na node from `node.nodes.`\n\n**Params**\n\n* `array` **{Array}**\n* `n` **{Number}**\n* `returns` **{undefined}**\n\n### [.arrayify](index.js#L1028)\n\nCast the given `value` to an array.\n\n**Params**\n\n* `value` **{any}**\n* `returns` **{Array}**\n\n**Example**\n\n```js\nconsole.log(utils.arrayify(''));\n//=> []\nconsole.log(utils.arrayify('foo'));\n//=> ['foo']\nconsole.log(utils.arrayify(['foo']));\n//=> ['foo']\n```\n\n### [.stringify](index.js#L1047)\n\nConvert the given `value` to a string by joining with `,`. Useful\nfor creating a cheerio/CSS/DOM-style selector from a list of strings.\n\n**Params**\n\n* `value` **{any}**\n* `returns` **{Array}**\n\n### [.trim](index.js#L1060)\n\nEnsure that the given value is a string and call `.trim()` on it,\nor return an empty string.\n\n**Params**\n\n* `str` **{String}**\n* `returns` **{String}**\n\n## About\n\n
\nContributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n
\n\n
\nRunning Tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n
\n
\nBuilding docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n
\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [snapdragon-node](https://www.npmjs.com/package/snapdragon-node): Snapdragon utility for creating a new AST node in custom code, such as plugins. | [homepage](https://github.com/jonschlinkert/snapdragon-node \"Snapdragon utility for creating a new AST node in custom code, such as plugins.\")\n* [snapdragon-position](https://www.npmjs.com/package/snapdragon-position): Snapdragon util and plugin for patching the position on an AST node. | [homepage](https://github.com/here-be/snapdragon-position \"Snapdragon util and plugin for patching the position on an AST node.\")\n* [snapdragon-token](https://www.npmjs.com/package/snapdragon-token): Create a snapdragon token. Used by the snapdragon lexer, but can also be used by… [more](https://github.com/here-be/snapdragon-token) | [homepage](https://github.com/here-be/snapdragon-token \"Create a snapdragon token. Used by the snapdragon lexer, but can also be used by plugins.\")\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 43 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [realityking](https://github.com/realityking) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [linkedin/in/jonschlinkert](https://linkedin.com/in/jonschlinkert)\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on January 11, 2018._", "maintainers": [ { "email": "daniel@tschinder.de", "name": "danez" }, { "email": "github@sellside.com", "name": "jonschlinkert" } ], "time": { "modified": "2018-03-26T00:11:07.106Z", "created": "2017-01-19T09:14:29.818Z", "0.1.0": "2017-01-19T09:14:29.818Z", "0.1.1": "2017-01-21T01:56:54.343Z", "1.0.0": "2017-01-21T09:56:57.401Z", "1.0.1": "2017-01-21T10:06:40.989Z", "1.0.2": "2017-01-21T10:45:21.908Z", "1.0.3": "2017-02-02T17:47:50.893Z", "1.0.4": "2017-02-05T07:12:08.783Z", "1.0.5": "2017-02-05T07:12:51.260Z", "1.0.6": "2017-02-15T19:00:17.712Z", "2.0.0": "2017-02-15T19:25:36.208Z", "2.1.0": "2017-02-26T20:10:30.691Z", "2.1.1": "2017-03-04T20:54:16.858Z", "3.0.0": "2017-05-01T11:43:02.481Z", "3.0.1": "2017-06-25T09:46:40.807Z", "4.0.0": "2017-11-01T06:37:59.569Z", "5.0.0": "2018-01-11T09:03:43.283Z", "5.0.1": "2018-01-11T09:04:26.184Z" }, "homepage": "https://github.com/here-be/snapdragon-util", "keywords": [ "capture", "compile", "compiler", "convert", "match", "parse", "parser", "plugin", "render", "snapdragon", "snapdragonplugin", "transform", "util" ], "repository": { "type": "git", "url": "git+https://github.com/here-be/snapdragon-util.git" }, "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/here-be/snapdragon-util/issues" }, "license": "MIT", "readmeFilename": "README.md", "contributors": [ { "name": "Jon Schlinkert", "url": "http://twitter.com/jonschlinkert" }, { "name": "Rouven Weßling", "url": "www.rouvenwessling.de" } ], "_attachments": {} }