1.0.4 • Published 7 years ago

achim-slug v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

How to use

This package designed to help you to create simple slug, this tool converting your article title into readable slug and the number before your slug is get from minutes and seconds of new Date().

Install

>> npm i -S achim-slug

Example

at your Controllers

const newSlug = require('achim-slug');

var createData = (req, res) => {
  var myslug = newSlug(`${req.body.title}`)
  Thread.create({
    title: req.body.title,
    konten: req.body.konten,
    slug: myslug,
    author: req.body.author
  })
  .then(result => res.send(result))
  .catch(err => res.send(err))
}
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago