{"_id":"stringify-attributes","_rev":"342936","name":"stringify-attributes","description":"Turn an object into a string of HTML attributes","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-20T02:30:32.000Z","created":"2017-06-17T18:59:56.268Z","3.0.0":"2021-04-16T05:21:06.766Z","2.0.0":"2019-04-28T04:47:09.852Z","1.0.0":"2017-06-17T18:59:56.268Z"},"users":{"rocket0191":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/stringify-attributes.git"},"versions":{"3.0.0":{"name":"stringify-attributes","version":"3.0.0","description":"Turn an object into a string of HTML attributes","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/stringify-attributes.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["html","attributes","stringify","element","tag","props","object","convert","transform"],"dependencies":{"escape-goat":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"5f6d319ac79e78da30314ef73d97ae8fba898d4d","bugs":{"url":"https://github.com/sindresorhus/stringify-attributes/issues"},"homepage":"https://github.com/sindresorhus/stringify-attributes#readme","_id":"stringify-attributes@3.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"10d8c3615924df47b70d28c848d71c8afb0a8e52","size":1834,"noattachment":false,"key":"/stringify-attributes/-/stringify-attributes-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stringify-attributes/download/stringify-attributes-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-attributes_3.0.0_1618550466603_0.2106809752544625"},"_hasShrinkwrap":false,"publish_time":1618550466766,"_cnpm_publish_time":1618550466766},"2.0.0":{"name":"stringify-attributes","version":"2.0.0","description":"Turn an object into a string of HTML attributes","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/stringify-attributes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["html","attributes","stringify","element","tag","props","object","convert","transform"],"dependencies":{"escape-goat":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"251f63914d68ffd580d2cc2711bc04fd340bd1e1","bugs":{"url":"https://github.com/sindresorhus/stringify-attributes/issues"},"homepage":"https://github.com/sindresorhus/stringify-attributes#readme","_id":"stringify-attributes@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0355827de224ec8a94ca81a267f92a3f5f778820","size":1915,"noattachment":false,"key":"/stringify-attributes/-/stringify-attributes-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stringify-attributes/download/stringify-attributes-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-attributes_2.0.0_1556426829707_0.737381018967513"},"_hasShrinkwrap":false,"publish_time":1556426829852,"_cnpm_publish_time":1556426829852},"1.0.0":{"name":"stringify-attributes","version":"1.0.0","description":"Turn an object into a string of HTML attributes","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/stringify-attributes.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["html","attributes","stringify","element","tag","attr","props","object","obj","convert","transform"],"dependencies":{"escape-goat":"^1.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"7a06b1af07cb9669fea6b1d15b5638eb8c20637d","bugs":{"url":"https://github.com/sindresorhus/stringify-attributes/issues"},"homepage":"https://github.com/sindresorhus/stringify-attributes#readme","_id":"stringify-attributes@1.0.0","_shasum":"9e8b2f9a9467e7b48093cb2124ebc1c17e6382c5","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9e8b2f9a9467e7b48093cb2124ebc1c17e6382c5","size":1751,"noattachment":false,"key":"/stringify-attributes/-/stringify-attributes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stringify-attributes/download/stringify-attributes-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-attributes-1.0.0.tgz_1497725995341_0.05799978110007942"},"directories":{},"publish_time":1497725996268,"_hasShrinkwrap":false,"_cnpm_publish_time":1497725996268}},"readme":"# stringify-attributes\n\n> Turn an object into a string of HTML attributes\n\n## Install\n\n```\n$ npm install stringify-attributes\n```\n\n## Usage\n\n```js\nimport stringifyAttributes from 'stringify-attributes';\n\nstringifyAttributes({\n\tunicorn: '????',\n\trainbow: true,\n\tnumber: 1,\n\tmultiple: [\n\t\t'a',\n\t\t'b'\n\t]\n});\n//=> ' unicorn=\"????\" rainbow number=\"1\" multiple=\"a b\"'\n```\n\nNote that the string is prepended with a space when there are attributes to simplify using it in a HTML tag.\n\n## Related\n\n- [create-html-element](https://github.com/sindresorhus/create-html-element) - Create a HTML element string\n","_attachments":{},"homepage":"https://github.com/sindresorhus/stringify-attributes#readme","bugs":{"url":"https://github.com/sindresorhus/stringify-attributes/issues"},"license":"MIT"}