https://github.com/danielrohers/kratke
Short with hash number
https://github.com/danielrohers/kratke
Last synced: over 1 year ago
JSON representation
Short with hash number
- Host: GitHub
- URL: https://github.com/danielrohers/kratke
- Owner: danielrohers
- License: other
- Created: 2015-07-30T06:09:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-13T16:15:51.000Z (over 10 years ago)
- Last Synced: 2025-02-26T21:43:45.996Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/kratke
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kratke
Short with hash number
[](https://badge.fury.io/js/kratke)
[](https://www.npmjs.com/package/kratke)
## Install
```
$ npm install --save kratke
```
## Usage
```js
var kratke = require('kratke');
var name = 'http://www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com/';
var code = kratke(name);
console.log(code); //3508356967
```
## API
### kratke(name)
#### name
Type: `string`