open-index/open-npm huggingface dataset:
npm package: @sitmun/sitmun-js
Description: A universal client for the SITMUN public api written in Typescript
Author: Francisco J Lopez-Pellicer
Latest version: 0.0.6

# sitmun-js

A universal client for the SITMUN public api written in Typescript

![https://img.shields.io/npm/v/@sitmun/sitmun-js](https://img.shields.io/npm/v/@sitmun/sitmun-js)

## Features

- Tiny <1KB size gzip
- Works in Node.js and in Browser
- Built-in Typescript support

## Usage

Import `sitmun-js` in the project and initialize with your user and password if required:

```js
import SitmunJs from '@sitmun/sitmun-js'

const SitmunJsClient = new SitmunJs({ basePath: 'https://sitmun-backend-core.herokuapp.com/' })

await SitmunJsClient.login(user, password)

SitmunJsClient.workspace().then((data) => {
    // data is of type Workspace
})

SitmunJsClient.workspaceApplication(applicationId, territoryId).then((data) => {
    // data is of type WorkspaceApplication
})
```
npm package: @sitna/parsedbf
Description: The DBF parsing component of shapefile-js
Author: Calvin Metcalf
Latest version: 1.0.2

parseDBF
========
DBF parsing components of [shapefile-js](https://github.com/calvinmetcalf/shapefile-js)

[![Build Status](https://travis-ci.org/calvinmetcalf/parseDBF.svg)](https://travis-ci.org/calvinmetcalf/parseDBF)
[![Dependency Status](https://david-dm.org/calvinmetcalf/parseDBF.svg)](https://david-dm.org/calvinmetcalf/parseDBF)
[![devDependency Status](https://david-dm.org/calvinmetcalf/parseDBF/dev-status.svg)](https://david-dm.org/calvinmetcalf/parseDBF#info=devDependencies)


Install
===

```
npm install --save parsedbf
```

Usage
===

`parseDBF(buffer, [codepage])`

```js
var parseDBF = require('parsedbf');

var dbfFile = fs.readFileSync('path/to/my/file');
var parsedDBF = parseDBF(dbfFile);
```
npm package: @sito/socket-client
Description: Super small lib for socket client
Author: sito8943
Latest version: 0.0.1

# Super small Socket Client for chat

## Events

1. connected - to know if the client connected
2. disconnect - to know if the client disconnected
3. notify - to know if the client has to sync with the server
4. error - to know if an error has occurred

### How to use

```
import { SocketClient } from "@sito/socket-client";

const serverUrl = process.env.SERVER_URL;

const socket = new SocketClient(serverUrl, {
  onConnected: (socket) => console.info(socket),
  onDisconnect: (socket) => console.info(socket),
  onNotify: (socket) => console.info(socket),
});
```
npm package: @sito/socket-server
Description: Super small socket server for chats
Author: sito8943
Latest version: 0.0.1

# Super small Socket Server for chat

## Events

1. connection - to know if a client has connected
2. disconnect - to know if a client has disconnected
3. notify - to know if a client needs to sync with the server

### How to use

```
import express from "express";
import { createServer } from "http";

// @sito-socket
import { SocketServer } from "@sito/socket-server";

const port = process.env.PORT;
const app = express();

const httpServer = createServer(app);

const socket = new SocketServer(httpServer);

app.get("/send-test", (req, res) => {
  const { target, sender } = req.query;
  socket.io.emit("notify", {
    target,
    sender,
    message: "Hola Test",
  });
  res.send("test");
});

httpServer.listen(port, () => {
  console.info("listening on", port);
});

```