UNPKG
print-arch
Version:
latest (1.0.0)
1.0.0
Cross-platform print platform and architecture
github.com/bahmutov/print-arch
bahmutov/print-arch
print-arch
/
src
/
index.js
11 lines
(8 loc)
•
244 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
function
platformAndArchitecture
(
) {
const
platform =
`platform:
${process.platform}
`
const
arch =
`arch:
${process.arch}
`
const
message = platform +
'\n'
+ arch
return
message }
module
.
exports
= platformAndArchitecture