node-slice
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

node-slice

node version npm version downloads count size license github-ci

🔨 Short version of your strings!

Install

npm install node-slice

Usage

// CommonJS
const slice = require('node-slice');

// or ES Modules
import slice from 'node-slice';

slice('the best cookie in the world', 9); // => "the best..."

License

The MIT License @ 2016-2024

Package Sidebar

Install

npm i node-slice

Weekly Downloads

4

Version

2.0.1

License

MIT

Unpacked Size

9.85 kB

Total Files

6

Last publish

Collaborators

  • piecioshka