@miclgael/use-helpers
v0.0.19
Published
Set of helper functions designed for use with Vue/React
Downloads
24
Maintainers
Readme
use-helpers
Set of helper functions designed for use with Vue/React
Install
npm install --save-dev @miclgael/use-helpers
Usage example
import { useHelpers } from "@miclgael/use-helpers";
const { slugify } = useHelpers();
const slug = slugify("Stupidly long title with MIXed and special chars!@#$%");
console.log(slug); // "stupidly-long-title-with-mixed-and-special-chars"
Patching
If you're me (@miclgael) you can version bump on npm and github at the same time, with this command:
npm version [<newversion> | major | minor | patch] -m "chore: bump version to %s"
e.g.
npm version patch -m "chore: bump version to %s"
Will bump from v0.0.1
to v0.0.2
more info at npm version docs
Note: pre-version
, version
and post-version
scripts will also run.