https://github.com/calibr/dtd-file
DTD file parser created especially for parsing Firefox localization files
https://github.com/calibr/dtd-file
dtd firefox i18n localization
Last synced: 5 months ago
JSON representation
DTD file parser created especially for parsing Firefox localization files
- Host: GitHub
- URL: https://github.com/calibr/dtd-file
- Owner: calibr
- Created: 2015-09-25T18:07:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T23:19:12.000Z (over 9 years ago)
- Last Synced: 2025-10-13T19:34:55.587Z (8 months ago)
- Topics: dtd, firefox, i18n, localization
- Language: JavaScript
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Just parse DTD files, especially created for Firefox localization DTD files
## Install
`npm i dtd-file`
## Usage
### Parse dtd contents
```js
var parser = require("dtd-file");
var res = parser.parse(dtdContents);
// if in dtdContents you have:
//
//
// in res you will get an object:
// {
// "key1": "value1",
// "key2": "value2"
// }
```
### Stringify object to DTD file contents
```js
var parser = require("dtd-file");
var res = parser.stringify({
key1: "value1",
key2: "value2"
});
// in res you will get
//
//
```