Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including iptreader with all npm packages installed. Try it out:

var iptreader = require("iptreader")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

iptreader v0.2.0

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

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');
    });
});

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free