Skip to content
🎯 Ground place unique identifier generator.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__/unit
src
.editorconfig
.gitignore
.npmignore
.prettierrc
.travis.yml
LICENSE
README.md
jest.config.js
package.json
tsconfig.json
tsconfig.release.json
tslint.json
yarn.lock

README.md

gp-uid

Dependencies Coverage Build Status License PRs Welcome

Description

This repository provides a powerful ground place unique identifier generator.

Install

yarn add @tictactrip/gp-uid

How to use it?

import { Generator } from "@tictactrip/gp-uid";

const generator = new Generator();

const gpuid = generator.gpuid({
        name: 'Paris, Île-de-France, France',
        latitude: 49.00443,
        longitude: 2.51703,
        countryCode: 'fr',
        type: 'cluster',
      });

console.log(gpuid);

Output:

[
    {
        id: 'c|FRparis___@u09yc',
        countryCode: 'fr',
        latitude: 49.00443,
        longitude: 2.51703,
        name: 'Paris, Île-de-France, France',
        type: 'cluster'
    }
]

Scripts

Run using yarn run <script> command.

clean       - Remove temporarily folders.
build       - Compile source files.
build:watch - Interactive watch mode, compile sources on change.
lint        - Lint source files.
lint:fix    - Fix lint source files.
test        - Runs all tests with coverage.
test:watch  - Interactive watch mode, runs tests on change.

License

GPL-3.0 © Tictactrip

You can’t perform that action at this time.