@baid-group/dotbim-ts
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

dotbim-ts

Open-source TypeScript types, parser and encoder for dotbim file format.

dotbim's website: https://dotbim.net/

Here you can find small manual for developers regarding development of tools that will work with .bim file format: https://github.com/paireks/dotbim/blob/master/DeveloperTips.md

Installation

npm install @baid-group/dotbim-ts
//or
yarn add @baid-group/dotbim-ts

Using the library

Parse

import { parse } from "@baid-group/dotbim-ts";
import { readFileSync } from "fs";

const fileData: string = readFileSync("path/to/file.bim", {
  encoding: "utf-8",
});

parse(fileData);

Encode

import { encode, BimFile } from "@baid-group/dotbim-ts";

const dataToEncode: BimFile = {
  // some valid dotbim object
};

encode(dataToEncode);

Developed

dotbim-ts is developed and maintained by Baid Group for everyone in BIM community!

License

dotbim-ts is licensed under the MIT license. Please read the LICENSE file in this repository for more details.

Package Sidebar

Install

npm i @baid-group/dotbim-ts

Weekly Downloads

4

Version

0.5.1

License

MIT

Unpacked Size

18.5 kB

Total Files

19

Last publish

Collaborators

  • maciejlutostanski