{"name":"draft-js-prism","version":"1.0.5","description":"Code highlighting for DraftJS","main":"./lib/index.js","scripts":{"test":"mocha \"./lib/__tests__/*.js\" --bail --reporter=list","build":"browserify -t [ babelify --presets [ es2015 react ] ] ./demo/main.js > ./demo/dist.js; cp ./node_modules/prismjs/themes/prism.css ./demo/prism.css; cp ./node_modules/draft-js/dist/Draft.css ./demo/draft.css","deploy":"npm run build; gh-pages -d ./demo","watch":"watch 'npm run build' ./lib","serve":"http-server -p 9090 demo/","start":"npm run build; parallelshell 'npm run serve -s' 'npm run watch -s'"},"repository":{"type":"git","url":"git+https://github.com/SamyPesse/draft-js-prism.git"},"keywords":["draft-js"],"author":{"name":"Samy Pesse","email":"samypesse@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/SamyPesse/draft-js-prism/issues"},"homepage":"https://github.com/SamyPesse/draft-js-prism#readme","dependencies":{"extend":"^3.0.0","immutable":"*"},"peerDependencies":{"prismjs":"1.x"},"devDependencies":{"babel-preset-es2015":"^6.6.0","babel-preset-react":"^6.5.0","babelify":"^7.2.0","browserify":"^13.0.0","draft-js":"^0.7.0","expect":"^1.20.1","gh-pages":"^0.11.0","http-server":"^0.9.0","mocha":"^2.5.3","parallelshell":"2.0.0","prismjs":"1.x","react":"^15.1.0","react-dom":"^15.1.0","watch":"^0.18.0"},"gitHead":"88af0f56a7d1c602865755b127333936b4125559","_id":"draft-js-prism@1.0.5","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"mxstbr","email":"npm@mxstbr.com"},"dist":{"integrity":"sha512-KGpwV7hb4BWbBb7WEyhQrUWNK0nc4AWvbDk4Evmcev7KrAvWsKeqjbp+5j0ki0EexFCJ9XwG7WnN5f2zZ/TybQ==","shasum":"c32aa9c31bfd7b8ad9eb889c62e88a2cd7c741bd","tarball":"http://registry-npm.ywwl.com/draft-js-prism/download/draft-js-prism-1.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAF/o0D72+13KJagJ2b7ni5L5B1rITA9OwUKAW7HJuR0AiEAxJZ6aA5yWYW3cBXFpFaeA88mkzaAkIx7naGL9JyRjWY="}],"size":436212,"noattachment":false,"key":"/draft-js-prism/-/draft-js-prism-1.0.5.tgz"},"maintainers":[{"name":"mxstbr","email":"npm@mxstbr.com"},{"name":"samypesse","email":"samypesse@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/draft-js-prism-1.0.5.tgz_1506509474559_0.7682297052815557"},"directories":{},"readme":"# draft-js-prism\n\n[![NPM version](https://badge.fury.io/js/draft-js-prism.svg)](http://badge.fury.io/js/draft-js-prism)\n[![Build Status](https://travis-ci.org/SamyPesse/draft-js-prism.svg?branch=master)](https://travis-ci.org/SamyPesse/draft-js-prism)\n\n`draft-js-prism` is a decorator for DraftJS to highlight code blocks using [Prism](https://github.com/PrismJS/prism). It only decorates code blocks with syntax highlighting, if you're interested in providing a correct edition UX for code blocks, take a look at [draft-js-code](https://github.com/SamyPesse/draft-js-code).\n\n![Prism](./preview.gif)\n\n### Installation\n\n```\n$ npm install draft-js-prism prismjs\n```\n\n### Usage\n\n```js\nvar Draft = require('draft-js');\nvar PrismDecorator = require('draft-js-prism');\nvar Prism = require('prismjs')\n\nvar decorator = new PrismDecorator({\n  // Provide your own instance of PrismJS\n  prism: Prism,\n});\nvar editorState = Draft.EditorState.createEmpty(decorator)\n```\n\nYou'll also need to include the css for one of the [Prism themes](https://github.com/PrismJS/prism/tree/gh-pages/themes).\n\nYou can use this decorator combined with others by using [draft-js-multidecorators](https://github.com/SamyPesse/draft-js-multidecorators)\n","publish_time":1506509476060,"_cnpm_publish_time":1506509476060,"dist-tags":{"latest":"1.0.6"}}