jslicense-validate

    0.1.1 • Public • Published

    jslicense-validate.js

    npm version license build status

    Validate jslicense objects.

    The package includes and makes use of a JSON Schema.

    validate([
      ['(c) ', {field: 'year'}, ' ', {field: 'owners'}],
      ['Not a very good license.']
    ]); // => true
    
    validate([
      [{"field":"bad field name"}]
    ]); // => false
    
    validate(require('jslicense-apache-2.0')); // => true
    validate(require('jslicense-bsd-2-clause')); // => true
    validate(require('jslicense-bsd-3-clause')); // => true
    validate(require('jslicense-gpl-3.0')); // => true
    validate(require('jslicense-isc')); // => true
    validate(require('jslicense-mit')); // => true
    validate(require('jslicense-wtfpl')); // => true

    Install

    npm i jslicense-validate

    DownloadsWeekly Downloads

    2

    Version

    0.1.1

    License

    Apache-2.0

    Last publish

    Collaborators

    • kemitchell