{"name":"onigasm","version":"2.2.2","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","benchmark":"node benchmark.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","durations":"^3.4.1","jasmine-focused":"^1.0.7","onchange":"^3.3.0","typescript":"^2.7.1"},"dependencies":{"lru-cache":"^4.1.1"},"gitHead":"cd5b3e0265e42ca9bc716066c91c13c1a474b7e7","_id":"onigasm@2.2.2","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-TQTMk+RmPYx4sGzNAgV0q7At7PABDNHVqZBlC4aRXHg8hpCdemLOF0qq0gUCjwUbc7mhJMBOo3XpTRYwyr45Gw==","shasum":"0f853152278bf0da5b3d5be728d5218e472d03ca","tarball":"http://registry-npm.ywwl.com/onigasm/download/onigasm-2.2.2.tgz","fileCount":35,"unpackedSize":2743719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcudF2CRA9TVsSAnZWagAA9GQP/Ry7Iz06vqHP/xgCMgKz\nNho+wnBzwSoERtSWwEsHZHzdNpHGKa9ADvd+hzjTjzSMYvYyFxMTPjC5DOY3\nZwEci/7kI+bmxxsKF1IZT8UagAAotnIqawJmYAeuFm5b2d8kTqiuSKvUkfvn\nVkL6HYE/Tbt29bnsIsn+aGbUFjU0wLM69svqUwQ6bcMW/hwzHrhFtKU9MSSp\n7hB60VMBeu0VKQYtnBs2VbvDFagViUF3K8xOvEYouhJX+hsX06PRmXK+XXH+\n7Nnddq/NFu6oMm/DizpeC8kHooYwqIxVbC+Z7B5ZBQN8G0y6sRcGXvVXL0Gk\natetRRm9iS5BzjB2T9MH1ypiPVHObdApUEyLgfm1mdCrSDz0W8B48IIHSBDN\nFir8WcgM3t+Npf3YwMRuM13X7nv+0RFwzal2rcSZuybR+kSvYJRijeVU9LwR\nkzqaVi2W4eLuQn4Ld6fJ7+Q0sua88T1h4HvDFjKVjmS4S8jFCPrNhj7byOMr\nOn+tysi9FBRuOn0TaiIHSAKgG6OWCSOFds0O7v1DVqgspVEefsVLMwlPV8T7\nkfUCmvDfDa3Yg2elw6SiikZgMV9h0mKehlFuBmGHgDRKxx139yK/EYUCbGbo\nCbmcX1G5aE+cZLXGJA26pBPQHzpmqx5QgzfXOV/A9vf5GmPA62AbXsulwgOt\n3Uq1\r\n=jEv+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKn/UuEqB9kAr/8Rl5NgJXi0T2c4BN9dBsl+lPfieDvAiA8MG3mn7etC3F0XyTP1Mkf8E5jv8j35AWTK+iaZrPU3Q=="}],"size":2163400,"noattachment":false,"key":"/onigasm/-/onigasm-2.2.2.tgz"},"maintainers":[{"name":"sweetslush","email":"yo@chipto.io"}],"_npmUser":{"name":"sweetslush","email":"yo@chipto.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onigasm_2.2.2_1555681653448_0.31854889616631166"},"_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":1555681653659,"_cnpm_publish_time":1555681653659,"dist-tags":{"latest":"2.2.5"}}