Giter Club home page Giter Club logo

xcdl-js's Introduction

NPM version

xcdl-js

An experimental version of the xcdl command line application, implemented in JavaScript in the node.js framework. The project is publicly available from GitHub.

Prerequisites

node.js

node.js is a JavaScript runtime. Download the latest installer package from Current and install it. The default install location is somewhere in the system folders (like /usr/local/bin/node and /usr/local/lib/node_modules). If you prefer a sandboxed setup, download the binary archive (see the All download options link down the page) and unpack it in a folder of your choice.

npm

npm is the package manager for JavaScript. Normally it comes bundled with node.js, so no need to install it separately.

However it is recommended from time to time to update npm to the latest version:

sudo npm install npm -g

(the -g is required to update the global version; without this option it will install a local version in the user home folder).

Install xcdl

The xcdl binary module is available from the npm repository as xcdl and can be installed with:

sudo npm install xcdl -g

The utility is installed somewhere in the system folders (like /usr/local/bin/xcdl and /usr/local/lib/node_modules), and can be executed directly with the xcdl` command.

It is also possible to install the xcdl utility locally, in the user home folder:

npm install xcdl

In this case the default install location is in $HOME/node-modules, and can be executed with the ~/node_modules/xcdl/bin/xcdl command.

Run

generate-xpdsc

The only command implemented is generate-xpdsc, to extract content from a CMSIS .PDSC file and store it in JSON, to be included in xPacks (XCDL packages).

xcdl generate-xpdsc -i pdsc -o json

Development

The current development environment is based on Visual Studio Code. The initial development environment was Eclipse with the nodeclipse plug-ins, but results were disappointing.

Publish

To publish the module, update the version field in package.json and run:

cd xcdl-js.git
npm publish

Notes

As an experiment, this code was intentionally kept simple; asynchronous calls were avoided (actually were not needed at all).

Error processing is minimalistic; same for command line processing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.