1.0.2 • Published 3 years ago

limit-text-js v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

limit-text-js

Pustaka kecil yang dapat membantu kamu untuk memotong sebuah kalimat, kata atau paragraf

Instalasi

Menggunakan npm

npm install limit-text-js

Cara Menggunakan

const { shortText } = require("limit-text-js");

const textLimit = shortText("I love Code", 6);
console.log(textLimit); //I love
import { shortText } from "limit-text-js";

const textLimit = shortText("My name is Agus", 10, "...");
output: My name is...

Options

Param 1 : type string  | default string ""
Param 2 : type number  | default number 100
Param 3 : type string  | default string ""

Cara Berkontribusi

  • Fork repositori ini
  • Clone repositori
  • Lakukan perubahan atau perbaikan
  • Buat test case
  • Push dan buat Pull Request

TODO

  • Ganti license di package.json
  • Lengkapi README
  • Tambah file LICENSE
  • Bahasa Indonesia dan Bahasa Inggris

Inspirasi

  • Riza Fahmi
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago