tmx-tools
tmx tools collection, like split tmx into files, or count how many tus in the file and so on.
Last updated 3 years ago by raychen .
ISC · Original npm · Tarball · package.json
$ cnpm install tmx-tools 
SYNC missed versions from official npm registry.

tmx-tools

This is an exact tools about dealing with tmx files with sax parser We can use this package to count the tu num of a tmx file And also split a tmx file into files accroding to your configuraton

We are tring to add some more functibility to make this more effective

Install

npm install tmx-tools

How to use

The only thing we need to do is requiring or importing it and send some required options

You can check on the example folder to look the details

var path = require('path')
var tmxTools = require('tmx-tools')

// try to use absolute file urls, because the parser don't know the relative uri when the folder level changed
var srcFilePath = path.normalize(path.join(__dirname, 'your file path'))
tmxTools.countTU({ srcFilePath }).then(function (res) {
    console.log(res)
})

LICENSE

MIT

Current Tags

  • 1.0.15                                ...           latest (3 years ago)

16 Versions

  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
  • q ^1.5.0
  • sax ^1.2.2
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |