Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 959 Bytes

README.md

File metadata and controls

45 lines (28 loc) · 959 Bytes

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"
Example

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.