{"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","tarball":"http://registry-npm.ywwl.com/jq-trim/download/jq-trim-0.1.1.tgz","integrity":"sha512-EiQZyZgkbDcORlF4pnfN43nF9YQOL7p8cgU2d78bJmrQ+WmRotFlEijCbYY41+94r43uULCJjfv1qTeYkiJPPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsBtnMKxKkE1vB85AyZV0nJZRGhhW59ToX0Rvg/5keXAIgCAH5MgPynxbcxfCGRuUbXxs0VkyRRRlSaFOgTBs2bS0="}],"size":2658,"noattachment":false,"key":"/jq-trim/-/jq-trim-0.1.1.tgz"},"directories":{},"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","publish_time":1438293690241,"_cnpm_publish_time":1438293690241,"dist-tags":{"latest":"0.1.2"}}