{"_id":"@16g/react-simple-format","_rev":"3-9c5fd155253041972b7e3e89896c4cfa","name":"@16g/react-simple-format","description":"Simple format component like Ruby on Rails [simple_format](https://apidock.com/rails/ActionView/Helpers/TextHelper/simple_format)","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@16g/react-simple-format","version":"1.0.0","description":"Simple format component like Ruby on Rails [simple_format](https://apidock.com/rails/ActionView/Helpers/TextHelper/simple_format)","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","prepublishOnly":"npm test && npm run build","test":"ava"},"files":["src","lib"],"keywords":["react","simple_format","rails"],"repository":{"type":"git","url":"git+https://github.com/16/react-simple-format.git"},"author":{"name":"16g"},"license":"MIT","babel":{"presets":["env","react"],"plugins":[["transform-object-rest-spread",{"useBuiltIns":true}]]},"ava":{"files":["test/**/*-test.js"],"require":["babel-register","./test/setup.js"],"babel":"inherit"},"peerDependencies":{"react":"^15.0.0 || ^16.0.0"},"dependencies":{"html-react-parser":"^0.4.1","prop-types":"^15.6.0","sanitize-html":"^1.17.0"},"devDependencies":{"ava":"^0.24.0","babel-cli":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babel-register":"^6.26.0","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","react":"^16.2.0","react-dom":"^16.2.0"},"gitHead":"6dd8b8da30610fee059739bef4afa0ec2e422582","bugs":{"url":"https://github.com/16/react-simple-format/issues"},"homepage":"https://github.com/16/react-simple-format#readme","_id":"@16g/react-simple-format@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"16g","email":"lowitzarc@gmail.com"},"dist":{"integrity":"sha512-Lqja4oBxXAxse0g2wb2VcHwq10jVhQEOLQZGviW/LiZhsFvGpxASURYs8l7e8ZL98hrKMZismW6p+Tmcm8Kb1w==","shasum":"cd423cb15714534fcf624b82d7e06ba6751327b8","tarball":"https://registry.npmjs.org/@16g/react-simple-format/-/react-simple-format-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAn2g0Aztnl1zBRdW3a8AP3fw05KQamaSMVpUUuUAYPfAiEA7V2Soh2jB4bDf1AR1yljcT7pkUdP3K8A3Ged7IJNRtY="}]},"maintainers":[{"name":"16g","email":"lowitzarc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-format-1.0.0.tgz_1516446622970_0.13014928111806512"},"directories":{}},"1.0.1":{"name":"@16g/react-simple-format","version":"1.0.1","description":"Simple format component like Ruby on Rails [simple_format](https://apidock.com/rails/ActionView/Helpers/TextHelper/simple_format)","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","prepublishOnly":"npm test && npm run build","test":"ava"},"files":["src","lib"],"keywords":["react","simple_format","rails"],"repository":{"type":"git","url":"git+https://github.com/16g/react-simple-format.git"},"author":{"name":"16g"},"license":"MIT","babel":{"presets":["env","react"],"plugins":[["transform-object-rest-spread",{"useBuiltIns":true}]]},"ava":{"files":["test/**/*-test.js"],"require":["babel-register","./test/setup.js"],"babel":"inherit"},"peerDependencies":{"react":"^15.0.0 || ^16.0.0"},"dependencies":{"html-react-parser":"^0.4.1","prop-types":"^15.6.0","sanitize-html":"^1.17.0"},"devDependencies":{"ava":"^0.24.0","babel-cli":"^6.26.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babel-register":"^6.26.0","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","react":"^16.2.0","react-dom":"^16.2.0"},"gitHead":"9510b787b5ac32210766e7315efc16a7b7f2f505","bugs":{"url":"https://github.com/16g/react-simple-format/issues"},"homepage":"https://github.com/16g/react-simple-format#readme","_id":"@16g/react-simple-format@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"16g","email":"lowitzarc@gmail.com"},"dist":{"integrity":"sha512-2ZXfNjyPoyUKMPXfoZaVQNVxlkbztIPKUeuv6OoKZUMsCxQY0MyZ0HM2wNcYwvDLhayp5TXBh6PfJupjmyO22A==","shasum":"551fc6c1a622d5a03ff9173878bde10459218bbb","tarball":"https://registry.npmjs.org/@16g/react-simple-format/-/react-simple-format-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDZowBaFuU7l/bR6/Ns/LJazJFEnMMT8BcIG3JcQtpHgIhAMQOBJmEveBNmEthiE/Fimh4tY2PGd5DpryRaP7nn57H"}]},"maintainers":[{"name":"16g","email":"lowitzarc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-format-1.0.1.tgz_1516546097464_0.8014941997826099"},"directories":{}},"1.0.2":{"name":"@16g/react-simple-format","version":"1.0.2","description":"Simple format component like Ruby on Rails [simple_format](https://apidock.com/rails/ActionView/Helpers/TextHelper/simple_format)","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","prepublishOnly":"npm test && npm run build","test":"ava"},"keywords":["react","simple_format","rails"],"repository":{"type":"git","url":"git+https://github.com/16g/react-simple-format.git"},"author":{"name":"16g"},"license":"MIT","babel":{"presets":[["@babel/preset-env",{"loose":true}],"@babel/preset-react"],"plugins":[["@babel/plugin-proposal-object-rest-spread",{"loose":true,"useBuiltIns":true}]]},"ava":{"files":["test/**/*-test.js"],"require":["@babel/register","./test/setup.js"]},"peerDependencies":{"react":"^15.0.0 || ^16.0.0"},"dependencies":{"html-react-parser":"^0.6.0","prop-types":"^15.6.0","sanitize-html":"^1.17.0"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/plugin-proposal-object-rest-spread":"^7.2.0","@babel/preset-env":"^7.2.3","@babel/preset-react":"^7.0.0","@babel/register":"^7.0.0","ava":"^1.0.1","enzyme":"^3.8.0","enzyme-adapter-react-16":"^1.7.1","react":"^16.2.0","react-dom":"^16.2.0"},"gitHead":"3fdc6a0a1f1004225083484b43a39c39a9c8dcea","bugs":{"url":"https://github.com/16g/react-simple-format/issues"},"homepage":"https://github.com/16g/react-simple-format#readme","_id":"@16g/react-simple-format@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"9.11.2","_npmUser":{"name":"16g","email":"lowitzarc@gmail.com"},"dist":{"integrity":"sha512-yrO5s5V8qpeVwzJp3sqJrAiwU+iw3amE/U5tKGTqT0m+XbmaLRw6PiE0OoRQeyZ/fVUgJ4lpuHghCVzE8Cw1ig==","shasum":"55761d6c371a54d7b3db6cb43a301db91d6114d3","tarball":"https://registry.npmjs.org/@16g/react-simple-format/-/react-simple-format-1.0.2.tgz","fileCount":5,"unpackedSize":7078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcIc2CCRA9TVsSAnZWagAAC8IQAJVs/JVzQExjmsWNJzm/\ni0ov5YoyA1LEJkFg5+myhyWN+NJObPjLbUNqxAPtrbD3Nqj5Hm1KMg5nGs/j\n8CERosio66MXYRqb8y4dZVALpeaxE7BwzLMvulMYuAgV2hlN6SSQW0cqZZAF\nXKcgnefMl0n9ZW2i151n9rBwGq4mGlcxqfvfXPHmWD1VImEjRDtuojDqibfu\nipaqdSYJYU/Upjj2RLHJ9mXUJbSPoILN/Dm3V2AmSareFTEO15mQQqIW8MbZ\n3xxB8j3KzA9c8tt8G5iAaqoAs411EVXr9/79g5ny+tkAU3me+T0K2vNfqyDe\nqNtFvsISx9dbfxO2Yxu3wdMXjIa7FK10SLVYws+rSfoz0wXBaBpcNDKCi/zB\nt/MpHBJ1dkPOo3uKqDPXgfXw6JSKppxQw5sPbmIQN4GPq3QdIssGxCERh9Rm\nm5ZEEKxHQEVbddYSMQe0fWQbIBkn/y7xN+upsgS4K0r/xhyBEf9nDyh1thxl\nl/x+3b/N2e45LlS3+M6RZPQVnPH2NjEM1c8788plgJA1M5HYiCZxqFV0JVwL\nHKEvD+JxCsy1frBh1fhTLadi+FT0n9ZMIvUds3m2Rrp4PptWLFRPnHNY/EH/\n9jF07O5LALsXjz4mZKEgAFY2dhG1HIruchRBmn9hn87XIPStpfgJp3CvatPu\nbSjZ\r\n=nNqm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtZlrWhn5nP1Osm/wAKr5M0q2RXE3ucTnorIFvoqlw1gIgQRmVv/XJj246k55eSzwAfK7ldqbacSAKA2+Y994o3Io="}]},"maintainers":[{"name":"16g","email":"lowitzarc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-format_1.0.2_1545719169583_0.40683063534647834"},"_hasShrinkwrap":false}},"readme":"# @16g/react-simple-format [![npm version](https://img.shields.io/npm/v/@16g/react-simple-format.svg?style=flat)](https://www.npmjs.com/package/@16g/react-simple-format) [![CircleCI](https://circleci.com/gh/16g/react-simple-format.svg?style=svg)](https://circleci.com/gh/16g/react-simple-format)\n\nSimple format component like Ruby on Rails [simple_format](https://apidock.com/rails/ActionView/Helpers/TextHelper/simple_format) inspired by [rilkevb/react-simple-format](https://github.com/rilkevb/react-simple-format)\n\n## Installation\n\n```\nnpm i --save @16g/react-simple-format\n```\n\n## Usage\n\n```\nimport SimpleFormat from '@16g/react-simple-format';\n\nconst text = \"paragraph\\n\\nand another one\";\n\n<SimpleFormat text={text} />\n```\n\n## Props\n\n| Props | Type | Default | Description |\n|:---|:---|:---|:---|\n| text | string | undefined | Text will be formatted simply |\n| wrapperTag | string | 'p' | HTML tag wraps paragraph of `text` |\n| prefix | node | undefined | Node prepended to paragraph |\n| postfix | node | undefined | Node appended to paragraph |\n","maintainers":[{"name":"16g","email":"lowitzarc@gmail.com"}],"time":{"modified":"2022-04-04T10:32:07.072Z","created":"2018-01-20T11:10:23.105Z","1.0.0":"2018-01-20T11:10:23.105Z","1.0.1":"2018-01-21T14:48:17.662Z","1.0.2":"2018-12-25T06:26:09.690Z"},"homepage":"https://github.com/16g/react-simple-format#readme","keywords":["react","simple_format","rails"],"repository":{"type":"git","url":"git+https://github.com/16g/react-simple-format.git"},"author":{"name":"16g"},"bugs":{"url":"https://github.com/16g/react-simple-format/issues"},"license":"MIT","readmeFilename":"README.md"}