@ofjansen/pcre2-wasm
Advanced tools
Comparing version 1.2.13 to 1.3.0
{ | ||
"name": "@ofjansen/pcre2-wasm", | ||
"version": "1.2.13", | ||
"description": "PCRE2 (Perl Compatible Regular Expressions 2) compiled to WebAssembly", | ||
"version": "1.3.0", | ||
"description": "PCRE2 (Perl Compatible Regular Expressions 2) compiled to WebAssembly for use in the browser", | ||
"main": "dist/libpcre2.js", | ||
@@ -13,3 +13,3 @@ "files": [ | ||
"lightclean": "rimraf dist", | ||
"clean": "rimraf dist coverage .nyc_output deps/build", | ||
"clean": "rimraf dist coverage deps/build", | ||
"lint": "eslint src test", | ||
@@ -16,0 +16,0 @@ "prepare": "npm run build", |
# pcre2-wasm | ||
PCRE2 (Perl Compatible Regular Expressions) compiled to WebAssembly | ||
PCRE2 (Perl Compatible Regular Expressions) compiled to WebAssembly for use in the browser. | ||
@@ -8,3 +8,3 @@ ## Installation | ||
```bash | ||
npm install @stephen-riley/pcre2-wasm | ||
npm install @ofjansen/pcre2-wasm | ||
``` | ||
@@ -23,6 +23,7 @@ | ||
```javascript | ||
import PCRE from '@stephen-riley/pcre2-wasm' | ||
import libpcre2 from '@ofjansen/pcre2-wasm'; | ||
async function main () { | ||
await PCRE.init() | ||
const lib = libpcre2(); | ||
lib.PCRE.init(); | ||
// make other PCRE calls... | ||
@@ -46,3 +47,5 @@ } | ||
```javascript | ||
import PCRE from '@stephen-riley/pcre2-wasm' | ||
import libpcre2 from '@ofjansen/pcre2-wasm'; | ||
const lib = libpcre2(); | ||
``` | ||
@@ -156,2 +159,2 @@ | ||
This is a fork of [desertnet/pcre](https://github.com/desertnet/pcre), which provided the emscripten framework and initial API exposure of PCRE2. Many thanks! | ||
This is a fork of [stephen-riley/pcre2-wasm](https://github.com/stephen-riley/pcre2-wasm), with minor adjustments to make it work in a browser application I'm working on. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
856633
157