BLUE
PHP 7.4.33
Path:
/usr/share/nodejs/parse-node-version
Run
Logout
Edit File
Size: 497 B
Close
/usr/share/nodejs/parse-node-version/index.js
Text
Base64
'use strict'; function parseNodeVersion(version) { var match = version.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/); // eslint-disable-line max-len if (!match) { throw new Error('Unable to parse: ' + version); } var res = { major: parseInt(match[1], 10), minor: parseInt(match[2], 10), patch: parseInt(match[3], 10), pre: match[4] || '', build: match[5] || '', }; return res; } module.exports = parseNodeVersion;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
497 B
lrw-r--r--
2021-11-24 17:12:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
966 B
lrw-r--r--
2021-11-24 17:12:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).