slug-monkey
v1.0.5
Published
Unique Slugger for Mongoose
Downloads
9
Maintainers
Readme
SLUG MONKEY
let slugMonkey=require('slug-monkey'); //Importing package
let slug=await slugMonkey({
model:slug, // mongoose model (required)
slugField:"slug", // name of slug field of the model (default:"slug")
text:"bello world", // input text
replace:"-" // replace whitespace with (default:"-")
});
slugMonkey is an asynchronous function.