tictactrip / gp-uid

🎯 Ground place unique identifier generator.

Home Page:https://www.tictactrip.eu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

🎯 Ground place unique identifier generator.

https://www.tictactrip.eu

License:GNU General Public License v3.0


Languages

Language:TypeScript 98.6%Language:JavaScript 1.4%