uniform_structure_file
v1.1.14
Published
A TypeScript library for generating uniform structure files with full TypeScript support.
Readme
Uniform Structure File
A TypeScript library for generating uniform structure files with full TypeScript support.
Installation
npm install uniform_structure_fileUsage
JavaScript/CommonJS
const { generateUSF } = require('uniform_structure_file');
// Use the function
const result = await generateUSF(input);TypeScript/ES Modules
import { generateUSF, UniformStructureInput, USFResult } from 'uniform_structure_file';
// Use with full type safety
const result: USFResult = await generateUSF(input);Available Types
The package exports all necessary TypeScript types:
UniformStructureInput- Main input interfaceUSFResult- Result interfaceDocumentType- Document type enumsPaymentMethod- Payment method enumsSoftwareType- Software type enums- And many more...
Development
Building
npm run buildThis generates:
dist/index.js- CommonJS bundledist/index.mjs- ES Module bundledist/index.d.ts- TypeScript declarations
Testing
npm testPublishing
Before publishing run:
npm run build
# Then
npm publishThe package is configured to:
- Support both CommonJS and ES Module imports
- Include full TypeScript type definitions
- Only publish the
distfolder to npm
