Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Usage
-----
The `phpUnserialize.js` file implements the [Universal Module Definition][]
pattern which attempts to be compatible with multiple script loaders including
[AMD][], [CommonJS][] and direct usage in an HTML file.
[AMD][], [CommonJS][], [ES module][] and direct usage in an HTML file.

Plain HTML:
```html
Expand All @@ -85,6 +85,12 @@ var phpUnserialize = require('phpunserialize');
var foo = phpUnserialize('s:3:"foo";');
```

With a [ES module][] loader:
```javascript
import phpUnserialize from 'phpunserialize';
var foo = phpUnserialize('s:3:"foo";');
```

Running the Unit Tests
----------------------
```sh
Expand All @@ -102,3 +108,4 @@ npm test
[Universal Module Definition]: https://github.com/umdjs/umd
[AMD]: https://github.com/amdjs/amdjs-api/blob/master/AMD.md
[CommonJS]: http://wiki.commonjs.org/wiki/CommonJS
[ES module]: https://en.wikipedia.org/wiki/ECMAScript
Loading