{"title":"Benjamin Lupton's Utility Functions","name":"bal-util","version":"2.7.0","description":"Common utility functions for Node.js used and maintained by Benjamin Lupton","homepage":"https://github.com/balupton/bal-util","license":"MIT","keywords":["javascript","flow","control","async","sync","tasks","batch","utility","util","utilities","paths","path","events","event","module","modules","compare","comparison","html"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","opencollective","flattr","paypal","bitcoin","wishlist","---","slackin"],"config":{"patreonUsername":"bevry","opencollectiveUsername":"bevry","flattrUsername":"balupton","paypalURL":"https://bevry.me/paypal","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist","slackinURL":"https://slack.bevry.me"}},"author":{"name":"2011+ Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},"maintainers":[{"email":"b@lupton.cc","name":"balupton"},{"email":"us@bevry.me","name":"bevryme"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"http://balupton.com"},{"name":"Sean Fridman","email":"mail@seanfridman.com","url":"http://seanfridman.com"}],"bugs":{"url":"https://github.com/balupton/bal-util/issues"},"repository":{"type":"git","url":"git+https://github.com/balupton/bal-util.git"},"engines":{"node":">=0.12"},"editions":[{"description":"Source + CoffeeScript + Require","directory":"source","entry":"index.coffee","syntaxes":["coffeescript","require"]},{"description":"CoffeeScript Compiled + ESNext + Require","directory":"esnext","entry":"index.js","syntaxes":["javascript","esnext","require"]},{"description":"CoffeeScript Compiled + ES2015 + Require","directory":"es2015","entry":"index.js","syntaxes":["javascript","es2015","require"]}],"main":"index.js","browser":"es5/lib/balutil.js","dependencies":{"ambi":"^2.5.0","eachr":"^3.2.0","editions":"^1.3.4","extendr":"^3.2.2","extract-opts":"^3.3.1","ignorefs":"^1.1.1","safefs":"^4.1.0","scandirectory":"^2.5.0","taskgroup":"^5.0.1","typechecker":"^4.3.0"},"devDependencies":{"assert-helpers":"^4.5.1","babel-core":"^6.26.3","babel-preset-es2015":"^6.24.1","coffeelint":"^2.1.0","coffeescript":"^2.3.1","joe":"^2.0.2","joe-reporter-console":"^2.0.1","projectz":"^1.4.0","rimraf":"^2.5.4"},"scripts":{"our:setup":"npm run our:setup:npm","our:setup:npm":"npm install","our:clean":"rm -Rf ./docs ./es2015 ./es5 ./out","our:compile":"npm run our:compile:coffee:esnext && npm run our:compile:coffee:es2015","our:compile:coffee:esnext":"coffee -bco ./esnext ./source","our:compile:coffee:es2015":"coffee -bcto ./es2015 ./source","our:meta":"npm run our:meta:projectz","our:meta:projectz":"projectz compile","our:verify":"npm run our:verify:coffeelint","our:verify:coffeelint":"coffeelint ./source","our:deploy":"echo no need for this project","our:test":"npm run our:verify && npm test","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:release:push":"git push origin master && git push origin --tags","test":"node --harmony ./test.js --joe-reporter=console"},"gitHead":"3f78e730250a08ab1a459ad7d876285391df2280","_id":"bal-util@2.7.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"bevryme","email":"us@bevry.me"},"dist":{"integrity":"sha512-BZQ1x0B6qVwaboMURblOtKRJoZLUSWPGsYH7Ck6f6afd2QPkXRe74ztoCyfwExakF4qVCIiv1XgzlnCKGq6V5w==","shasum":"e30c85752d35a5795083a3d163b7fae7623a9a93","tarball":"http://registry-npm.ywwl.com/bal-util/download/bal-util-2.7.0.tgz","fileCount":24,"unpackedSize":133878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHMyECRA9TVsSAnZWagAAfvwP/iTxXAXavM1ycFjEx6lH\nxn71jW+maiPTskXY6qm9Xn0u1iju1OVhGPjy9t5GyrIsywUGxiqFGV6jPNhx\ncf5l92ovilC9roa4R7qcryj60s5Ik+bjucCi/RUTMtdQ3fNuSu0PkspusAAi\nieEqv4+ep1TWz73WtUWXYTAXfzcSBFJOSxpLAHo02+dhPBUwJpzTQlWOTd3T\nmgFlAqlBzbxyG7jNgFudRR8GyXrj/cQV06BSzckWA9WhDNvttcHITBsWFK7Y\nXaHpwphYLmmHndFgg4IvxLProK1kIbDL86fwyvE4EtgpHbtxU7aikaUFz3HN\nQoafMCshIiG0+z26c24Fgf7M/SwCKCuxyf7SV1N+mgVwDSxxUr7CUUgZBOxq\nQWjqh7SSOfw9aC/pMdbAIiV5xlisOczLXuQpJa26kYY61FZtxHEPnNItuuxi\nkyahXQTyMfk11FoTJfR4e6w+jcJt8u7Ng8arBKwlMGvclBHa7mh8XYhmcO6j\n08vhYOc2tr6Qc1P1jJrU1V7cdEmGXlTvTs0I/ns3nA30q32Ek0SW7sTwaw7s\nRMfMAt9p03uJYeMsQVfjf8RV+7SyqMmjb+yX5cjIEbJ8nHEs96RJHgxFhjbv\ndlIUnZAj/CJoXXi0COE7hFr2G4YWCJadzlm4WgWHf7JEJbFSi50dx+yBJxpl\nfhHR\r\n=Bz2j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcaz6SzcmXmNkujLQMrWmNkjoxN1l+qI+w/Ypj1zMZPAiEAyEVrPEwELCvoPDKXmS2vdR9L1Wj657cbSLXlGRcE4Xs="}],"size":32251,"noattachment":false,"key":"/bal-util/-/bal-util-2.7.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bal-util_2.7.0_1528614019242_0.6397982455955504"},"_hasShrinkwrap":false,"readme":"<!-- TITLE/ -->\n\n<h1>Benjamin Lupton's Utility Functions</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.org/balupton/bal-util\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/balupton/bal-util/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/bal-util\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/bal-util.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/bal-util\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/bal-util.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/balupton/bal-util\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/balupton/bal-util.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/balupton/bal-util#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/balupton/bal-util.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-bitcoin\"><a href=\"https://bevry.me/bitcoin\" title=\"Donate once-off to this project using Bitcoin\"><img src=\"https://img.shields.io/badge/bitcoin-donate-yellow.svg\" alt=\"Bitcoin donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-slackin\"><a href=\"https://slack.bevry.me\" title=\"Join this project's slack community\"><img src=\"https://slack.bevry.me/badge.svg\" alt=\"Slack community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nCommon utility functions for Node.js used and maintained by Benjamin Lupton\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>NPM</h3></a><ul>\n<li>Install: <code>npm install --save bal-util</code></li>\n<li>Module: <code>require('bal-util')</code></li></ul>\n\n<a href=\"http://browserify.org\" title=\"Browserify lets you require('modules') in the browser by bundling up all of your dependencies\"><h3>Browserify</h3></a><ul>\n<li>Install: <code>npm install --save bal-util</code></li>\n<li>Module: <code>require('bal-util')</code></li>\n<li>CDN URL: <code>//wzrd.in/bundle/bal-util@2.8.0</code></li></ul>\n\n<a href=\"http://enderjs.com\" title=\"Ender is a full featured package manager for your browser\"><h3>Ender</h3></a><ul>\n<li>Install: <code>ender add bal-util</code></li>\n<li>Module: <code>require('bal-util')</code></li></ul>\n\n<h3><a href=\"https://github.com/bevry/editions\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>bal-util</code> aliases <code>bal-util/index.js</code> which uses <a href=\"https://github.com/bevry/editions\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a> to automatically select the correct edition for the consumers environment</li>\n<li><code>bal-util/source/index.coffee</code> is Source + CoffeeScript + <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a></li>\n<li><code>bal-util/esnext/index.js</code> is CoffeeScript Compiled + <a href=\"https://babeljs.io/docs/learn-es2015/\" title=\"ECMAScript Next\">ESNext</a> + <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a></li>\n<li><code>bal-util/es2015/index.js</code> is CoffeeScript Compiled + <a href=\"http://babeljs.io/docs/plugins/preset-es2015/\" title=\"ECMAScript 2015\">ES2015</a> + <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a></li></ul>\n\n<p>Older environments may need <a href=\"https://babeljs.io/docs/usage/polyfill/\" title=\"A polyfill that emulates missing ECMAScript environment features\">Babel's Polyfill</a> or something similar.</p>\n\n<!-- /INSTALL -->\n\n\n## Usage\nBest off looking at source, it's well documented, and there are plenty of tests\n\n\n\n## Abstraction\nWe're working to breaking out every part of bal-util into their own modules, or to use existing modules where there is now a more abstract version. Below are the list of the following abstractions that have been made:\n\n- [ambi](https://github.com/bevry/ambi) < `balUtilFlow.fireWithOptionalCallback`\n- [binaryextensions](https://github.com/bevry/binaryextensions) < `balUtilPaths.binaryExtensions`\n- [detect-indentation](https://github.com/bevry/detect-indentation) < `balUtilHTML.detectIndentation`\n- [eachr](https://github.com/bevry/eachr) < `balUtilFlow.each`\n- [event-emitter-grouped](https://github.com/bevry/event-emitter-grouped) < `balUtilEvents.EventEmitterEnhanced`\n- [extendr](https://github.com/bevry/extendr) < `balUtilFlow.(extend|clone|etc)`\n- [extract-opts](https://github.com/bevry/extract-opts) < `balUtilFlow.extractOptsAndCallback`\n- [getsetdeep](https://github.com/bevry/getsetdeep) < `balUtilFlow.(get|set)Deep`\n- [ignorefs](https://github.com/bevry/ignorefs) < `balUtilPaths.isIgnoredPath`\n- [ignorepatterns](https://github.com/bevry/ignorepatterns/blob/master/HISTORY.md) < `balUtilPaths.ignoreCommonPatterns`\n- [istextorbinary](https://github.com/bevry/istextorbinary) < `balUtilPaths.(isTextSync|isText|getEncodingSync|getEncoding)`\n- [remove-indentation](https://github.com/bevry/remove-indentation) < `balUtilHTML.removeIndentation`\n- [rimraf](https://github.com/isaacs/rimraf) < `balUtilPaths.rmdirDeep`\n- [ropo](https://github.com/bevry/ropo) < `balUtilHTML.(getAttribute|replaceElement|replaceElementAsync)`\n- [safecallback](https://github.com/bevry/safecallback) < `balUtilFlow.safeCallback`\n- [safefs](https://github.com/bevry/safefs) < `balUtilPaths.(openFile|closeFile|etc)`\n- [safeps](https://github.com/bevry/safeps) < `balUtilModules`\n- [scandirectory](https://github.com/bevry/scandirectory) < `balUtilPaths.scandir`\n- [taskgroup](https://github.com/bevry/taskgroup) < `balUtilFlow.Group`\n- [textextensions](https://github.com/bevry/textextensions) < `balUtilPaths.textExtensions`\n- [trim-indentation](https://github.com/bevry/trim-indentation) < `balUtilHTML.removeIndentation`\n- [typechecker](https://github.com/bevry/typechecker) < `balUtilTypes`\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/balupton/bal-util/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/balupton/bal-util/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/balupton/bal-util/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository balupton/bal-util\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-bitcoin\"><a href=\"https://bevry.me/bitcoin\" title=\"Donate once-off to this project using Bitcoin\"><img src=\"https://img.shields.io/badge/bitcoin-donate-yellow.svg\" alt=\"Bitcoin donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/balupton/bal-util/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository balupton/bal-util\">view contributions</a></li>\n<li><a href=\"http://seanfridman.com\">Sean Fridman</a> — <a href=\"https://github.com/balupton/bal-util/commits?author=sfrdmn\" title=\"View the GitHub contributions of Sean Fridman on repository balupton/bal-util\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/balupton/bal-util/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2011+ <a href=\"http://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","publish_time":1528614019324,"_cnpm_publish_time":1528614019324,"dist-tags":{"latest":"2.8.0"}}