nx-url-hash
Utility to easily generate hashes from URL's
Last updated 7 years ago by pmoelgaard .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nx-url-hash 
SYNC missed versions from official npm registry.

URL-HASH

Utility to easily generate hashes from URL's

Current configuration is coded to use SHA-1 and HEX encoding, future updates will enable users to easily configure this.  


Installation

npm install nx-url-hash [--save]

Usage

var URLHash = require('nx-url-hash');
var urlHash = new URLHash({
	key: [YourKey][Optional],
	algorithm: [Any Algorithm supported by NodeJS's Crypto Lib] [Default: SHA1] [Optional],
	encoding: [Any Encoding supported by NodeJS's Crypto Lib] [Default: HEX] [Optional],
})
var hash = urlHash.hash(URL_TO_ENCODE);

Author

Peter Andreas Moelgaard (GitHub, Twitter)

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Current Tags

  • 1.0.6                                ...           latest (7 years ago)

7 Versions

  • 1.0.6                                ...           7 years ago
  • 1.0.5                                ...           7 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2021 © npmmirror.com |