UNPKG

xmlapi

Version:

a common interface for Node and browser native XML APIs

38 lines (27 loc) 1.26 kB
#xmlapi Release coming early July. <!--- An intuitive xml manipulation interface with implementations to run both Node and the browser (Nashorn support planned). An alternative to coding with browser’s DOM API (which is ugly) and employing [xmldom](https://github.com/jindw/xmldom) for node (which is slow). ## Usage ### ES6 ```js ``` ### typescript First, you `npm install xmlapi`. Then code: ```ts import { AbstractElement } from 'xmlapi'; ``` ## Contribution This project is for the interface itself, refer to [xmlapi-libxmljs](https://github.com/msklvsk/xmlapi-libxmljs) or [xmlapi-webapi](https://github.com/msklvsk/xmlapi-web) repos for specific implementation. Questions, wishes, ideas, bugs and pull requests are always [welcomed](https://github.com/msklvsk/xmlapi/issues/new). ### Development ```bash git clone https://github.com/msklvsk/xmlapi.git cd xmlapi npm install npm run build:w ``` ### API principles - We expose a getter/setter rather than a method if it's constant time and complies with [C# guidlines](https://msdn.microsoft.com/en-us/library/ms229054(v=vs.100%29.aspx). We assume WebAPI property access is constant time if corresponding libxml method is. <!-- https://msdn.microsoft.com/en-us/library/ms229054(v=vs.100).aspx-->