validate-exports-object
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

validate-exports-object Version Badge

github actions coverage License Downloads

npm badge

Validate an object in the "exports" field.

Example

const assert = require('assert');
const validateExportsObject = require('validate-exports-object');
const pkg = require('./package.json');

const results = validateExportsObject(pkg.exports);

assert.deepEqual(
    results,
    {
        __proto__: null,
        normalized: {
            __proto__: null,
            '.': './index.js',
            './package.json': './package.json'
        },
        problems: [],
        status: 'files'
    }
);

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

Package Sidebar

Install

npm i validate-exports-object

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

23.2 kB

Total Files

11

Last publish

Collaborators

  • ljharb