npm

Need private packages and team management tools?Check out npm Orgs. »

iptreader

0.2.0 • Public • Published

Autodesk Inventor License Reader

iptreader is a node.js library to read and change the license of IPT-files (Autodesk Inventor files).

The license may not be acurate as this is all done using reverse engineering.

Install

You can install iptreader using the Node Package Manager (npm):

npm install iptreader

Simple example

var iptreader = require('iptreader');
 
var someLicense = [
    'Name',
    '0x00000000',
    '0x00000000',
    '0x00000000',
    '0x00000000',
    'Some Buildnumber'
];
 
 
fs.readFile('./original.ipt', function (err, data) {
    if (err) return console.log(err);
 
    var currentLicense = iptreader.getLicense(data);
    console.log('currentLicense', currentLicense);
 
    console.log('setting new licence:', someLicense);
    var newData = iptreader.setLicense(data, someLicense);
 
    fs.writeFile('./new.ipt', newData, function (err) {
        if(err) return console.log(err);
        console.log('done');
    });
});
 

Keywords

none

install

npm i iptreader

Downloadsweekly downloads

0

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability