Package Exports
- unique-hash
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (unique-hash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
unique-hash
Useful for saving to
import uniqueHash from "unique-hash"
let url = "https://www.npmjs.com/package/unique-hash"
uniqueHash(url)
//>> output
uniqueHash(url)
//>> output
uniqueHash(url,{
prepend:"prepend",
append:"append",
appendDate:"appendDate",
hashId:"hash",
date:new Date(),
format:"string"
}))
//>> output
Parameters
Parameter | Default | Description |
---|---|---|
format | "number" | options: "number", "string" or "kebabCase" |
prepend | "" | string to prepend output path |
append | "" | string to append output path |
appendDate | "" | string to center between date and hash id (eg. output /YYYY/MM/DD/[HERE]/:hashId ) |
date | n/a | pass in date to append /YYYY/MM/DD to save path |
hashId | n/a | override the output hashId, useful if you want to use with date. |