🔨 Short version of your strings!
npm install node-slice
// CommonJS
const slice = require('node-slice');
// or ES Modules
import slice from 'node-slice';
slice('the best cookie in the world', 9); // => "the best..."
The MIT License @ 2016-2024
🔨 Short version of your strings!
npm install node-slice
// CommonJS
const slice = require('node-slice');
// or ES Modules
import slice from 'node-slice';
slice('the best cookie in the world', 9); // => "the best..."
The MIT License @ 2016-2024
npm i node-slice
4
2.0.1
MIT
9.85 kB
6