{"_id":"2d-brace","name":"2d-brace","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"2d-brace","version":"0.1.0","description":"browserify compatible version of the ace editor.","main":"index.js","typings":"index.d.ts","scripts":{"update":"(cd build && node ./update && node ./update-ts)","test":"browserify test/*.js > test/bundle.js --debug && opener test/index.html"},"repository":{"type":"git","url":"git+https://github.com/kkYFL/2d-brace.git"},"homepage":"https://github.com/kkYFL/2d-brace.git","dependencies":{},"devDependencies":{"browserify":"~4.2.0","opener":"~1.3.0","shelljs":"~0.2.6","tape":"~4.0.0","uglify-js":"~2.2.5"},"keywords":["ace","editor","browser","package","bundle","inline","browserify"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/21..latest","firefox/nightly","chrome/26..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"b7815a3f7bed4fa28ac176d0b33da909670c5b15","bugs":{"url":"https://github.com/kkYFL/2d-brace/issues"},"_id":"2d-brace@0.1.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-A2nQ8t/yVzClq23KCrod9N5Nzg6GQT5SqcYEz/B3PbZrtn+vTkTCwfv2p2H/pVJj3WCO8C9Hj6nqnT1e0nSdvA==","shasum":"9a2bace82c040a58cecb4fe1ee5bea545f5289c3","tarball":"https://registry.npmjs.org/2d-brace/-/2d-brace-0.1.0.tgz","fileCount":392,"unpackedSize":8455212,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGknP6G+GlwgJeDBjfbFVIiglIngrYeGjLHzPrQejLjoAiEAy7JfS8an3G7204JewixUOAcay/fXRQ18pTThfpv4l/E="}]},"_npmUser":{"name":"yangfenglin","email":"1490719714@qq.com"},"directories":{},"maintainers":[{"name":"yangfenglin","email":"1490719714@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/2d-brace_0.1.0_1735548006783_0.6819591582355757"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-30T08:40:06.782Z","0.1.0":"2024-12-30T08:40:07.010Z","modified":"2024-12-30T08:40:07.266Z"},"maintainers":[{"name":"yangfenglin","email":"1490719714@qq.com"}],"description":"browserify compatible version of the ace editor.","homepage":"https://github.com/kkYFL/2d-brace.git","keywords":["ace","editor","browser","package","bundle","inline","browserify"],"repository":{"type":"git","url":"git+https://github.com/kkYFL/2d-brace.git"},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"bugs":{"url":"https://github.com/kkYFL/2d-brace/issues"},"license":"MIT","readme":"# brace\n\n[原始仓库]https://github.com/thlorenz/brace.git\n\n[业务改造仓库]https://github.com/kkYFL/2d-brace.git\n\n## Installation\n\n    npm install brace\n\n## Example\n\n```js\nvar ace = require('brace');\nrequire('brace/mode/javascript');\nrequire('brace/theme/monokai');\n\nvar editor = ace.edit('javascript-editor');\neditor.getSession().setMode('ace/mode/javascript');\neditor.setTheme('ace/theme/monokai');\n```\n\nInclude the above as an **entry** in your browserify build, add a `<div id=\"javascript-editor\"></div>` to your html page and\na JavaScript editor will appear.\n\nThis editor will show error/warning annotations if your browser supports WebWorkers\ncreated via a blob URL (see testling support badge on top).\n\nPlease consult the [detailed example](https://github.com/thlorenz/brace/tree/master/example) for more information.\n\n\n## Can I use it with TypeScript?\n\nYes, brace includes modular type definitions so you can do normal import statements and type safety checking\nwith TypeScript. The example above becomes:\n\n```ts\nimport * as ace from 'brace';\nimport 'brace/mode/javascript';\nimport 'brace/theme/monokai';\n\nconst editor = ace.edit('javascript-editor');\neditor.getSession().setMode('ace/mode/javascript');\neditor.setTheme('ace/theme/monokai');\n```\n\n## Test\n\n    npm explore brace\n    npm test\n\n## 分支\n2d-branch 业务改造分支\n\n","readmeFilename":"README.md"}