How to use the node-object-hash function in node-object-hash

To help you get started, we’ve selected a few node-object-hash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phenomic / phenomic / src / _utils / cache / webpack.js View on Github external
      configHash: (config) => (new ObjectHash()).hash(config),
      environmentPaths: {
github VisualComposer / builder / public / editor / services / stylesManager / service.js View on Github external
this.get().forEach((style) => {
      let hasher = objectHash({ sort: true, coerce: true }).hash
      let hash = hasher(style)

      if (typeof cssHashes[ hash ] !== 'undefined' && typeof cssHashes[ hash ].result !== 'undefined') {
        return iterations.push(cssHashes[ hash ].result)
      }

      let use = []
      if (style.hasOwnProperty('variables')) {
        use.push(postcssAdvancedVars({
          variables: style.variables
        }))
        use.push(postcssCustomProps(style.variables))
      } else {
        use.push(postcssAdvancedVars())
        use.push(postcssCustomProps())
      }
github phenomic / phenomic / src / _utils / hard-source-webpack-plugin / index.js View on Github external
export const getCacheDir = (config: PhenomicConfig): string => {
  return findCacheDir({
    name: "phenomic/webpack-hard-source-cache/" +
    (new ObjectHash()).hash(config),
  })
}
github phenomic / phenomic / src / _utils / cache / webpack.js View on Github external
      configHash: (config) => (new ObjectHash()).hash(config),
      environmentPaths: {

node-object-hash

Node.js object hash library with properties/arrays sorting to provide constant hashes

MIT
Latest version published 1 year ago

Package Health Score

71 / 100
Full package analysis