Interpret a number as base 8
npm install octal
yarn add octal
pnpm add octal
bun add octal
Interpret a number as base 8.
Same as the 0<number> notation but works in strict mode / standard js.
0<number>
var octal = require('octal') console.log(octal(777)) // prints 511 which is 0777
MIT