npm install lto
yarn add lto
pnpm install lto
To execute the package directly, use:
npx lto
# 1 4 11 14 25 43
You can also integrate lto into your JavaScript projects. Here's how you can use it:
const { MAX_NUMBER, MIN_NUMBER, create, random } = require('lto');
console.log(MAX_NUMBER, MIN_NUMBER); // 45 1
console.log(random()); // 8
console.log(create()); // [ 2, 4, 10, 16, 19, 30 ]