1.0.2 • Published 1 year ago
nodejs-utility-functions v1.0.2
nodejs-utility-functions
This package helps to speed up work.
Install via NPM
npm install nodejs-utility-functions
Usage
const {
createSlug,
createHashPassword,
getCloudinaryFilePublicId,
checkPassword,
} = require("nodejs-utility-functions");
To Create hash password:
// Call This Function
let hashPassword = createHashPassword(Your Password);
Note Then you will get Hash Password
To Check Password
// Call This Function
let result = checkPassword(Your Password, Database Password)
});
Note Then you will get a Boolean Value
To Create Slug:
// Call This Function
let slug = createSlug(Your Title)
Note Then you will get a Slug
To get Cloudinary Public Id
// Call This Function
let publicId = getCloudinaryFilePublicId(Your File URL)
});
Note Then you will get a Public Id