Normal Programming Mistake

    node-dbf-checker

    0.1.2 • Public • Published

    node-dbf-checker

    Check DBF field value format

    Usage

    // ES6
    import Checker, {
      Types as T,
    } from 'node-dbf-checker';
     
    const checker = new Checker('./path/to/dbf/file', {
      encoding: 'big5', // default utf8
    });
     
    checker.check({
      NAME: T.string.len(5).isRequired,
      AGE: T.number,
    }).then((records) => {
      // do something...
    }).catch((errors) => {
      // error handler
    });

    Install

    npm i node-dbf-checker

    DownloadsWeekly Downloads

    4

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • fantasywind