@wge/objects-db
v8.0.9
Published
Objects database for industrial project
Downloads
12
Readme
Objects DB
Install
Set npm repository
Run command, and set your login, password and email(any):
npm adduser --registry http://npmrepo.webgears3d.com --scope=@wg
This will add following lines in your ~/.npmrc
file:
@wg:registry=http://npmrepo.webgears3d.com/
//npmrepo.webgears3d.com/:_authToken="%user_password_hash%"
If you want you could place this file locally in your project's folder.
Install package
npm i @wge/objects-db
Run
import ObjectsDB from '@wge/objects-db';
const db = new ObjectsDB();
(async () => {
await db.load('some/url/objects.wof');
const result = await db.request(null, ['_id', 'originalName']);
console.log(result);
})();