{"_id":"jq-trim","_rev":"55253","name":"jq-trim","description":"A trim method that behaves like jquery.trim","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"time":{"modified":"2021-06-03T10:16:49.000Z","created":"2015-07-25T08:45:35.341Z","0.1.2":"2015-08-25T03:50:33.713Z","0.1.1":"2015-07-30T22:01:30.241Z","0.1.0":"2015-07-25T08:45:35.341Z"},"users":{},"author":{"name":"Roy Riojas","url":"http://royriojas.com"},"repository":{"type":"git","url":"git+https://github.com/royriojas/jq-trim.git"},"versions":{"0.1.2":{"name":"jq-trim","version":"0.1.2","description":"A trim method that behaves like jquery.trim","main":"index.js","scripts":{"beautify":"esbeautifier 'index.js' 'specs/**/*.js'","beautify-check":"esbeautifier -k 'index.js' 'specs/**/*.js'","eslint":"eslinter 'index.js' 'specs/**/*.js'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"watch-spawn -i -p 'specs/**/*.js' -p 'index.js' npm run cover","lint":"npm run beautify && npm run eslint && npm test","verify":"npm run beautify-check && npm run eslint && npm test","install-hooks":"prepush install && changelogx install-hook && precommit install","changelog":"changelogx -f markdown -o ./changelog.md","do-changelog":"npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify","pre-v":"npm run verify","post-v":"npm run do-changelog && git push --no-verify && git push --tags --no-verify","bump-major":"npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v","bump-minor":"npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v","bump-patch":"npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v"},"keywords":["trim","jquery-trim","string trim"],"repository":{"type":"git","url":"git+https://github.com/royriojas/jq-trim.git"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run verify"],"precommit":{"tasks":["npm run verify"],"onDirtyState":"stash"},"dependencies":{},"devDependencies":{"changelogx":"^1.0.16","esbeautifier":"^4.0.1","eslinter":"^2.1.0","istanbul":"^0.3.17","mocha-runner":"^1.0.8","precommit":"^1.0.3","prepush":"^3.1.2","watch-spawn":"^1.0.3"},"gitHead":"57063469b64efb6a3cbdf0a0d5ed51d1bcb3c378","bugs":{"url":"https://github.com/royriojas/jq-trim/issues"},"homepage":"https://github.com/royriojas/jq-trim#readme","_id":"jq-trim@0.1.2","_shasum":"87d926d944d39bd4b499cb837c3576a910b58618","_from":".","_npmVersion":"2.14.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"87d926d944d39bd4b499cb837c3576a910b58618","size":2692,"noattachment":false,"key":"/jq-trim/-/jq-trim-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jq-trim/download/jq-trim-0.1.2.tgz"},"directories":{},"publish_time":1440474633713,"_cnpm_publish_time":1440474633713,"_hasShrinkwrap":false},"0.1.1":{"name":"jq-trim","version":"0.1.1","description":"A trim method that behaves like jquery.trim","main":"index.js","scripts":{"beautify":"esbeautifier 'index.js' 'specs/**/*.js'","beautify-check":"esbeautifier -k 'index.js' 'specs/**/*.js'","eslint":"eslinter 'index.js' 'specs/**/*.js'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"watch-spawn -i -p 'specs/**/*.js' -p 'index.js' npm run cover","lint":"npm run beautify && npm run eslint && npm test","verify":"npm run beautify-check && npm run eslint && npm test","install-hooks":"prepush install && changelogx install-hook && precommit install","changelog":"changelogx -f markdown -o ./changelog.md","do-changelog":"npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify","pre-v":"npm run verify","post-v":"npm run do-changelog && git push --no-verify && git push --tags --no-verify","bump-major":"npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v","bump-minor":"npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v","bump-patch":"npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v"},"keywords":["trim","jquery-trim","string trim"],"repository":{"type":"git","url":"https://github.com/royriojas/jq-trim"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run verify"],"precommit":{"tasks":["npm run verify"],"onDirtyState":"stash"},"dependencies":{},"devDependencies":{"changelogx":"^1.0.16","esbeautifier":"^4.0.1","eslinter":"^2.1.0","istanbul":"^0.3.17","mocha-runner":"^1.0.8","precommit":"^1.0.3","prepush":"^3.1.2","watch-spawn":"^1.0.3"},"gitHead":"1cd49814ea55454f310896412bcbb46303790988","bugs":{"url":"https://github.com/royriojas/jq-trim/issues"},"homepage":"https://github.com/royriojas/jq-trim","_id":"jq-trim@0.1.1","_shasum":"116b6420e0fd9d2552bed0723addf8626efb70d0","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"116b6420e0fd9d2552bed0723addf8626efb70d0","size":2658,"noattachment":false,"key":"/jq-trim/-/jq-trim-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jq-trim/download/jq-trim-0.1.1.tgz"},"directories":{},"publish_time":1438293690241,"_cnpm_publish_time":1438293690241,"_hasShrinkwrap":false},"0.1.0":{"name":"jq-trim","version":"0.1.0","description":"A trim method that behaves like jquery.trim","main":"index.js","scripts":{"beautify":"esbeautifier 'index.js' 'specs/**/*.js'","beautify-check":"esbeautifier -k 'index.js' 'specs/**/*.js'","eslint":"eslinter 'index.js' 'specs/**/*.js'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"watch-spawn -i -p 'specs/**/*.js' -p 'index.js' npm run cover","lint":"npm run beautify && npm run eslint && npm test","check":"npm run beautify-check && npm run eslint && npm test","install-hooks":"changelogx install-hook && prepush install","bump":"bumpery --verify='npm run check'","changelog":"changelogx -f markdown -o ./changelog.md","do-changelog":"npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog'"},"keywords":["trim","jquery-trim","string trim"],"repository":{"type":"git","url":"https://github.com/royriojas/jq-trim"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run check"],"dependencies":{},"devDependencies":{"bumpery":"^1.1.1","changelogx":"^1.0.15","esbeautifier":"^3.2.0","eslinter":"^2.0.6","istanbul":"^0.3.17","mocha-runner":"^1.0.8","prepush":"^2.0.4","proxyquire":"^1.6.0","read-file":"^0.2.0","watch-spawn":"^1.0.3"},"gitHead":"2e2df8db0a4281993c616cca2506669706da4d77","bugs":{"url":"https://github.com/royriojas/jq-trim/issues"},"homepage":"https://github.com/royriojas/jq-trim","_id":"jq-trim@0.1.0","_shasum":"4a2278ac5577e88ac6de956d2da3e003aae4ac32","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"4a2278ac5577e88ac6de956d2da3e003aae4ac32","size":2506,"noattachment":false,"key":"/jq-trim/-/jq-trim-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jq-trim/download/jq-trim-0.1.0.tgz"},"directories":{},"publish_time":1437813935341,"_cnpm_publish_time":1437813935341,"_hasShrinkwrap":false}},"readme":"[![NPM Version](http://img.shields.io/npm/v/jq-trim.svg?style=flat)](https://npmjs.org/package/jq-trim)\n[![Build Status](http://img.shields.io/travis/royriojas/jq-trim.svg?style=flat)](https://travis-ci.org/royriojas/jq-trim)\n\n# jq-trim\n> A trim method that behaves like jquery.trim\n\n## Install\n\n```bash\nnpm i --save jq-trim\n```\n\n## Usage\n\n```javascript\nvar trim = require('jq-trim');\n\ndescribe( 'jq-trim', function () {\n  it( 'should trim a string', function () {\n    var trim = require( '../' );\n    var val = trim( ' a simple string    ' );\n    expect( val ).to.equal( 'a simple string' );\n  } );\n  it( 'should return an empty string if null is passed', function () {\n    var trim = require( '../' );\n    var val = trim( null );\n    expect( val ).to.equal( '' );\n  } );\n  it( 'should return an empty string if undefined is passed', function () {\n    var trim = require( '../' );\n    var val = trim( undefined );\n    expect( val ).to.equal( '' );\n  } );\n  it( 'should return the toString() of the passed object if non a string', function () {\n    var trim = require( '../' );\n    var val = trim( { } );\n    expect( val ).to.equal( '[object Object]' );\n  } );\n} );\n```\n\n## License\n\n[MIT](./LICENSE)\n\n## Changelog\n\n[Changelog](./changelog.md)\n","_attachments":{},"homepage":"https://github.com/royriojas/jq-trim#readme","bugs":{"url":"https://github.com/royriojas/jq-trim/issues"},"license":"MIT"}