{"name":"onigasm","version":"2.2.3","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\"","clean":"git submodule foreach --recursive git clean -xfd && rimraf lib","test":"node test/index.js","benchmark":"node benchmark.js","prepublishOnly":"npm run setup-emsdk && npm run clean && npm run build && npm run test","setup-emsdk":"/bin/bash -c 'source ./scripts/setup-emsdk.sh 1.39.1'"},"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","rimraf":"^3.0.0","typescript":"^2.7.1"},"dependencies":{"lru-cache":"^4.1.1"},"gitHead":"269e499d27cb43ffd3e06840f9751982d3fe3bfe","_id":"onigasm@2.2.3","_nodeVersion":"12.9.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-y3Qg9q6g6CVjRWN9m95tmi1owzaIlRXkk65sANAq2kjjBjrW7rYH8zJO4YmCoa00igrhjRXMXeiTEfcf5K3z7A==","shasum":"91da7aecf586789f136f6f854c8914927834b018","tarball":"http://registry-npm.ywwl.com/onigasm/download/onigasm-2.2.3.tgz","fileCount":34,"unpackedSize":563332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyyZPCRA9TVsSAnZWagAAmQcP/jPF+XlrEfjpsSK5zMwL\nFUrgK/UpLdfJdZ06nlhAL+kVWjZPiFFT5228+XFCS8gOOxWYhIkrTubzqTT3\nI5EbAyx6oDsf+qV6lyhjhisMxjQ4EZXuzHOL9Ku2FijntZzW6ovbvKLQmPXp\nfDQG4aLykuHdMsQQNQSCHZKkUKvHSd2g/f1bh14xVoJ0T30wQnbzUsqWkB7A\nlKl2H3TdPwKZoq5bSI1yyzHHXZDykQpmcw/g78gDZ1SaRv5zrRNp6h5FXByZ\n3H98MySrVdQkJscpN46EeIzy3jONOouN0Tf3GDbraU4Aj8Sw4hoeNeF9xEU5\ncKFLHmw8LhZ+slrU3x/ZiWbr6H9inEchrIHkpwEGe4v4gjcBJ4c/yk6zvi/V\nac79uOynxNiWQOLJb9FnSGVFOpyEosOpncsSoPiZ/4MSd07ekReqAgzNHw7G\nbQf0YF4R6wrcOxFTUVM+MsoBv+FVVq637pTasr5EubOmqJcyTkfleNpT6h7I\nhJMBhkROFLKO/+b6lSVt6G86najsF9nZugdLn2xyLIl1Schkz89OWNBtbB/b\n6KPxMoOjscgvRsYn5IK7bn4XvcZZ/ZMWAKJRb32LFbLOnvjhqXxIyCJ/VbzC\n5j5c9f+sE8qeF5qJa9N+0HsWCnFHohxv9vw8Hk+n2wMQRUP3xt2OxvkdeFP9\nwgus\r\n=5jwe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEXztwQ+glIs5TITZXNu1XQwdfKW9J/Wrik3jIVcLYgZAiAWrcn57K3roAM4x782axuKYXnwjZOrSnSUQzR9BjkaIA=="}],"size":170639,"noattachment":false,"key":"/onigasm/-/onigasm-2.2.3.tgz"},"maintainers":[{"email":"martinae@microsoft.com","name":"aeschli"},{"email":"yo@chipto.io","name":"sweetslush"}],"_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onigasm_2.2.3_1573594702775_0.7260009423698284"},"_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":1573594702942,"_cnpm_publish_time":1573594702942,"dist-tags":{"latest":"2.2.5"}}