{"name":"onigasm","version":"2.0.0","description":"WebAssembly port of Oniguruma regex library","main":"lib/index.js","typings":"lib/typings/index.d.ts","scripts":{"build::onig":"./scripts/build.sh","watch::onig":"onchange 'src/**/*.cc' -w -p 1000 -- npm run build::onig","build::tsc":"tsc","watch::tsc":"tsc -w","build":"concurrently \"npm run build::tsc\" \"npm run build::onig\"","watch":"concurrently \"npm run watch::tsc\" \"npm run watch::onig\"","test":"node test/index.js"},"repository":{"type":"git","url":"git+https://github.com/NeekSandhu/onigasm.git"},"keywords":["oniguruma","onig","regex","wasm","asm","web","assembly"],"author":{"name":"Neek Sandhu","email":"neek.sandhu@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/NeekSandhu/onigasm/issues"},"homepage":"https://github.com/NeekSandhu/onigasm#readme","devDependencies":{"@types/lru-cache":"^4.1.0","concurrently":"^3.5.1","jasmine-focused":"^1.0.7","onchange":"^3.3.0","typescript":"^2.7.1"},"dependencies":{"lru-cache":"^4.1.1"},"gitHead":"e98594f2bdf07c3b01b853fd6cf94405a900b689","_id":"onigasm@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"sweetslush","email":"yo@chipto.io"},"dist":{"integrity":"sha512-TIteOHtD+mbRah97reAEh7RZGsqwN1+DK+QZ+obSQTfFxESs2VTu3FfFi1L9tLAYXvkO39OCvKcWG/c50bzIxg==","shasum":"83a410a7393ad1eec4aeeaeae744cb9ee7a59ea8","tarball":"http://registry-npm.ywwl.com/onigasm/download/onigasm-2.0.0.tgz","fileCount":50,"unpackedSize":1339261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbApB8CRA9TVsSAnZWagAAFOcP/0WlRBRlX1rromVUHyqS\nJXyJUYzm0TTNzg0rrV67Oxh6EoIofD6bUcgt9Ewh7XzqvoJWe1wlhXPK+oFM\nOO8cJqT0Y2i9yb3BowTEXrSSAAqzAulccyoltWR1guNFjelubEZm6KLKnPQ9\nCUdMoH8coTVtfXnyMhJay4+Ih70dJmbsoFsSu763pBIEjbqZgZfGDN1LEtyF\npRvz8UtNMrmAstFtpq0i3Y3MIBQxV3w48rgH8BP1WZdWtyLwI0h5NTp7glzy\nPkMgo6TGV1FOuCgDP94zmmsYAD9m/H0oX4W5QSU97aIQlc3MraXwIgffLRQp\ny8+nlWwGg69SYUiFmCPEj1K/0wUoj1+IANGjqYCrh/cGjiR2MQlY3ubP70FO\nuAsglcj9Ary0czXhDpjtf2+fb99VhJWRxOmE5tvg0fWZza0FcCsZBd7BGv4Q\nI4U+edO8+d+qWU/8D4sgcM1l1Exmgr4I0Kug7PzQqEXYyXRPVC3qkww0J3Jl\nqKzD4yJSh8MCyUODd4ykC2GN8JITC2w+YLU8NnmdVbgpWzoeywRUCyLTgTiJ\nSjzQCvOVNVMqMCUpKNIY1JQkE5eOAnHEz/PDZacbl6lJ/6kHIceSDCEfUWIk\nHpEtJHi/C92F6O+1Yn2xiwIjp2zdeWH7yVSq53Tza5IdtMIvjYIar0PUDh6U\nt5b3\r\n=Uktr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECI3j3FrTR6XPaZRO4BsXIfTpIQy3747sIBKz/XwLKYAiEAp+PnWLbCQoH94VC2E7B4WdbvJ2fRjaNQ/fskHljc7X8="}],"size":367007,"noattachment":false,"key":"/onigasm/-/onigasm-2.0.0.tgz"},"maintainers":[{"name":"sweetslush","email":"yo@chipto.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onigasm_2.0.0_1526894716150_0.8905637311129961"},"_hasShrinkwrap":false,"readme":"# Onigasm (**Onig**uruma**ASM**)\n\n`WebAssembly` port of Oniguruma regex library.\n\nUsage/API/Behaviour 1:1 with [`node-oniguruma`](https://github.com/atom/node-oniguruma) port, tests are literally imported from `node-oniguruma` repository for maximum compliance.\n\nOf course, unlike `node-oniguruma`, this library can't hook into roots of `V8` and is therefore 2 times* slower than the former.\n\n## Instructions for porting your app to web\n\n### Install\n\n```bash\nnpm i onigasm\n```\n\n### Light it up\n\n> WASM must be loaded before you use any other feature like `OnigRegExp` or `OnigScanner`\n\n```javascript\n// index.js (entry point)\n\nimport { loadWASM } from 'onigasm'\nimport App from './App'\n\n(async () => {\n    await loadWASM('path/to/onigasm.wasm') // You can also pass ArrayBuffer of onigasm.wasm file\n    App.start()\n})()\n\n// `onigasm.wasm` file will be available at `onigasm/lib/onigasm.wasm` in `node_modules` of your project directory\n```\n\n> Once loaded `onigasm` is a drop-in replacement for `oniguruma`\n\n```diff\n- import { OnigRegExp } from 'oniguruma'\n+ import { OnigRegExp } from 'onigasm'\n```\n\n### That's it!\n\n\\* Tested under laboratory conditions using `benchmark.js`\n___\n\n### License\n\n`onigasm` is licensed under MIT License. See `LICENSE` in the root of this project for more info.\n\n### Contributors/Maintainers\n- [@neeksandhu](https://github.com/NeekSandhu) (Neek Sandhu)\n- [@aeschli](https://github.com/aeschli) (Martin Aeschlimann)\n\n","publish_time":1526894716324,"_cnpm_publish_time":1526894716324,"dist-tags":{"latest":"2.2.5"}}