{"name":"onigasm","version":"2.2.1","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":"84631f4e36cdd469bd94dfbcf3285740f16929f0","_id":"onigasm@2.2.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"sweetslush","email":"yo@chipto.io"},"dist":{"integrity":"sha512-pa361CpVfsWOk0MQ1jLuJ1GvEJMHEHgZmaBpOIfBbvbp2crkDHacXB6mA4vgEfO7fL0OEMUSuZjX0Q9yTx6jTg==","shasum":"d56da809d63d3bb25510e8b8e447ffe98e56bebb","tarball":"http://registry-npm.ywwl.com/onigasm/download/onigasm-2.2.1.tgz","fileCount":40,"unpackedSize":20081390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbMy4+CRA9TVsSAnZWagAArTIP/iL00joePk9DBqqBlSHu\nrLZj+O03b08txgXgAf+8KMagZ5Yam2NFgB1YL2E72CG264gT9EvQ4Wkpmswh\nIdmLmS+cVP6SwyWC9ge8f5Jc1WLK0psqLRKe4/xzW4qEG5OFunhuKimMLuBo\nyaukTWMmhs3tmkq+RTtYai9AHQ6TSZpbPdD+IUEFo7Yzk3KWDIqrP4K804He\n9IKTSgPPU1W6L2LaHzViyx5nc4bmteVtR8324A6UWYHNO39zumpmU2gOHrXb\nZg556kyBDQV9O5cLYIt8LxdLoLU6L2XUaVdBMUNmYaWNr5MV8Y5urOxzn13e\nneOpsQOW5sCms/xNwdIl6LhMWbzPgeNZJw369PDUXUoZCIQK54cEumNUJIpK\nViRbxbt1dshD646aeflcT+Pq7Apzmfi+FqRwaWyBeqB/pZYwrMlgHY0c+ugF\nMuq2LCrtgUE50ig9S0luX7tNhh4UU+X5l9vbWZj+7ROUcPJE6L2U5RG7uFu9\nO0GDoIf0Yo/UyzFtXJKIpuOSDNhvNhzJgXke8YRQbIs96iXZJ4Zv1i1c4tHO\nURmhhPc9CYLAJ/o36AGxzk1fgc2noJj8mM692en87n68lAHHdLFFum2IQJCo\noLQASi0kSEUHOZYhVqhBty1wTDrZWnD1Jy8vcEg3VePF/0O/xRCk473i6AfO\nrFD1\r\n=qOUl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGN6xMvw2741QB+LoDS3FZ0aM48RbF4tWPA64Ahy2VmMAiEAleA+LNaO/tvtr9TSuj3mDKsswebHe50bEVN/6+trU14="}],"size":2009531,"noattachment":false,"key":"/onigasm/-/onigasm-2.2.1.tgz"},"maintainers":[{"name":"sweetslush","email":"yo@chipto.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onigasm_2.2.1_1530080830608_0.14562565778638303"},"_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":1530080830873,"_cnpm_publish_time":1530080830873,"dist-tags":{"latest":"2.2.5"}}