{"name":"onigasm","version":"2.2.5","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","preversion":"npm run setup-emsdk && npm run clean && npm run build && npm run test","setup-emsdk":"./scripts/setup-emsdk.sh 1.39.2"},"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":"^5.1.0","concurrently":"^5.0.0","durations":"^3.4.1","jasmine-focused":"^1.0.7","onchange":"^6.1.0","rimraf":"^3.0.0","tslint":"^5.20.1","typescript":"^3.7.2"},"dependencies":{"lru-cache":"^5.1.1"},"gitHead":"82c56c383334b0c502e805d8940e4b745b67eda2","_id":"onigasm@2.2.5","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-F+th54mPc0l1lp1ZcFMyL/jTs2Tlq4SqIHKIXGZOR/VkHkF9A7Fr5rRr5+ZG/lWeRsyrClLYRq7s/yFQ/XhWCA==","shasum":"cc4d2a79a0fa0b64caec1f4c7ea367585a676892","tarball":"http://registry-npm.ywwl.com/onigasm/download/onigasm-2.2.5.tgz","fileCount":34,"unpackedSize":565820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaXnUCRA9TVsSAnZWagAAX1EQAJUg1AsKgXA7OjOqvLpv\nWEVPIx17DOTWs01Lhi7nazxmtXe5tGkTawhtzYHcWBgKAKn+rbbgwrhZx1Q6\nYkQeeaGPRUbgrY67BHKlBIEWIH5trblnEXysBW14XaPiH8UDG3eir+CLrCHc\nW4P646BlICvdo9AcNHJqbpDpWoeBRdq05rEG62qs1Iq15zRnurMUBczrvxAL\n8HGdZU5+qTSaj9+/11nYyJUPQCfiH5Zz6JygXaKq56ZxxjRwCNB/6/uUp+l7\no8xg7H7KqJigAV/cMCaoC7CGsthFc7V1XJyRat9Pp6HelMHMleIhbvKkdIlM\nxZn5tdTC6UgQnU6r7JUXZIGPZacMnJwAta4j8sPDKKy3pacvIgGMVhj8kzZD\ny38QpN2VmuH/rBqGuFP6BmNVPC4rCYbbnIxKB5/14X6TPc6RYnpyPdxoWhJf\nqUh7UHadxITKQ4UPFSVMjFLUJ6TYRBD0ZpIoHowZXzCbpi197sVPIaetYzBy\n/myLyv9IFGHpdV3RX2LSd45Kl/HkkBt8KB6lCrLFC6+HbfdTbAwe2M4yhz42\nJIGe/pk3U6vIkskyiGYFgKIysfEDoqfQjkgqdIQ/d8Wysa9RunMRG+wyd/Fr\nS2/JSQ/IHWMbgtTORnv41YSTldHAWJhwlMtPZYpXjLG7Jb9vBUQjU85pmJcD\nFduo\r\n=Aoss\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUjwna0THDoOgpKgrSC7WV7WiDmSEqrd22dZSoLeRewAiB/nceWCUCHpXu1LuuVVsnULTnAiCv2qSKHTrrpwHVmUw=="}],"size":171687,"noattachment":false,"key":"/onigasm/-/onigasm-2.2.5.tgz"},"maintainers":[{"name":"aeschli","email":"martinae@microsoft.com"},{"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.5_1600747988224_0.7220045690208268"},"_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":1600747988396,"_cnpm_publish_time":1600747988396,"dist-tags":{"latest":"2.2.5"}}