Platforms
PRPL supports Node current and LTS versions. Support for Deno is on the roadmap.
Node
Here is a breakdown of all Node platform APIs used by PRPL and their earliest supported versions:
os
Method | Version supported |
---|---|
EOL |
>=0.7.8 |
url
Method | Version supported |
---|---|
fileURLToPath |
>=10.12.0 |
path
Method | Version supported |
---|---|
basename |
>=0.1.25 |
dirname |
>=0.1.16 |
extname |
>=0.1.25 |
join |
>=0.1.16 |
parse |
>=0.11.15 |
posix |
>=0.11.15 |
relative |
>=0.5.0 |
resolve |
>=0.3.4 |
sep |
>=0.7.9 |
fs/promises
Method | Version supported |
---|---|
copyFile |
>=10.0.0 |
mkdir |
>=10.0.0 |
readdir |
>=10.0.0 |
readFile |
>=10.0.0 |
stat |
>=10.0.0 |
writeFile |
>=10.0.0 |
Deno
Deno has been a consideration since early days in the PRPL project. The following decisions were partly influenced by the potential for Deno as platform target:
- Adoption of TypeScript
- PRPL modules written as ECMAScript modules
- Introduction of
ensureDir
,ensureFile
, andexists
as library functions
These decisions will ease the process of supporting Deno. Some other notes:
- There is an open ticket on Node compatibility and an effort in the Deno standard lib working towards it
- The Deno standard library has a
path
module that has 1:1 implementations with allpath
Node APIs used by PRPL - Deno
fs
to Nodefs/promises
is less exact in equivalency for the APIs used by PRPL but is fairly close
See the FAQ next.