{"name":"onigasm","version":"2.2.4","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","typescript":"^3.7.2"},"dependencies":{"lru-cache":"^5.1.1","tslint":"^5.20.1"},"gitHead":"1ae5ee3fe489e2dc3885019d193c6ee4eaa01113","_id":"onigasm@2.2.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"integrity":"sha512-BJKxCTsK0mrLh+A6AuNzknxaULZRKM5uywA2goluMLLCjfMm/PTUa0M7oSH1Ltb6CT1oKXn2atHR75Y3JQ0SSg==","shasum":"b0ad97e3d7c3080476a1e5daae4b4579a976cbba","tarball":"http://registry-npm.ywwl.com/onigasm/download/onigasm-2.2.4.tgz","fileCount":62,"unpackedSize":795243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzC6kCRA9TVsSAnZWagAAGjYP/jwjrg7uKPY2zvuiu2ER\nU9OZWj8RmzU7KDlWweo2CYxNx23sa39xYvIaDZQSMQArqxUVma+/fXSnRddO\nyizjSsLVltUv7JlKKhr9cnmfnjvHDtm1sXU9jxldG/UcU3xUyxlESl69khyJ\nGD0uPHQzGP6SORS8/KF+JpBqwEzovCMngtjw6kHzgFzW8tmIiDz8fhASud3Y\nSLRU8+3eYYllprrGWi+ERhUNMRlpsQbOj4CAy60KJFxTaIeY2HXniemgWHiC\naZhFr05GDEmNfpwJsXnaAFqUoUSBYByhFfl3yHHxoVDa58cRqqPfbK1qj4It\nbhKPcARpbejaWDydRonhl4RFjnAFu9x3OrVH3LCWpCDzUOmHnMg6450rMG8f\nSt7Cfw6dDBbkPpEeYazOaXrca/EZlbz4SgYlAgYsVgBrQ8dLuRUG7JxwOifw\n/wzQM5KsnSt/85JZaInR0/dyPCyTDZBdixFPb403bNkNZN9gVHycdo4+Qq92\nBhVGgLcjWzIlI+7i1+hH6FN1Mj+a80HgLuiLk55Y6UbhWbpZD7Y9rSTgfYmb\n8+rWo7IIgS5LgUOTa//O6kGLSDifSxG7/jqEq2KmfqKmXrMI3zuj0rLtAKiq\nM3KRw6MB4P5q6l6bMqNNr2/+MyhY+/R4eeIW2aDM9QFaQxETGVTL35SXJxWM\n66dG\r\n=PyUS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDun0ZANGYCisE5azlpbakPR5IRKQ21E71ep6YHIAFe5AiEAnBud0cDgZDWJYuGykpg9aUW/a92UVA/5/sNeGitOb3w="}],"size":225268,"noattachment":false,"key":"/onigasm/-/onigasm-2.2.4.tgz"},"maintainers":[{"email":"martinae@microsoft.com","name":"aeschli"},{"email":"yo@chipto.io","name":"sweetslush"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onigasm_2.2.4_1573662372346_0.4888192597213954"},"_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":1573662372522,"_cnpm_publish_time":1573662372522,"dist-tags":{"latest":"2.2.5"}}