deno-nodejs-transformer

A Deno module for transform Deno package to NodeJS package. This module is a modified edition of the JSR package `dnt`.

https://github.com/hugoalh/deno-nodejs-transformer

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.6%) to scientific vocabulary

Keywords

build builder deno nodejs package transform transformer
Last synced: 6 months ago · JSON representation ·

Repository

A Deno module for transform Deno package to NodeJS package. This module is a modified edition of the JSR package `dnt`.

Basic Info
  • Host: GitHub
  • Owner: hugoalh
  • License: other
  • Language: TypeScript
  • Default Branch: main
  • Homepage:
  • Size: 2.71 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 20
Topics
build builder deno nodejs package transform transformer
Created over 1 year ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Citation Codeowners Security

README.md

Deno NodeJS Transformer

⚖️ MIT

GitHub: hugoalh/deno-nodejs-transformer JSR: @hugoalh/deno-nodejs-transformer

A Deno module for transform Deno package to NodeJS package.

This module is a modified edition of the JSR package dnt which aim for:

  • Always force with ECMAScript module
  • Hotfix engine issues
  • Improve file structure
  • Unify configuration

🔰 Begin

🎯 Targets

| Targets | Remote | JSR | |:--|:-:|:-:| | Deno >= v2.2.5 | ✔️ | ✔️ |

[!NOTE] - It is possible to use this module in other methods/ways which not listed in here, however those methods/ways are not officially supported, and should beware maybe cause security issues.

#️⃣ Resources Identifier

  • Remote - GitHub Raw: https://raw.githubusercontent.com/hugoalh/deno-nodejs-transformer/{Tag}/mod.ts
  • JSR: [jsr:]@hugoalh/deno-nodejs-transformer[@{Tag}]

[!NOTE] - For usage of remote resources, it is recommended to import the entire module with the main path mod.ts, however it is also able to import part of the module with sub path if available, but do not import if:

  • it's path has an underscore prefix (e.g.: _foo.ts, _util/bar.ts), or
  • it is a benchmark or test file (e.g.: foo.bench.ts, foo.test.ts), or
  • it's symbol has an underscore prefix (e.g.: _bar, _foo).

These elements are not considered part of the public API, thus no stability is guaranteed for them. - For usage of JSR resources, it is recommended to import the entire module with the main entrypoint, however it is also able to import part of the module with sub entrypoint if available, please visit the file jsr.jsonc property exports for available sub entrypoints. - It is recommended to use this module with tag for immutability.

🛡️ Runtime Permissions

  • Environment Variable (Deno: env):
    • Resources
  • File System - Read (Deno: read):
    • Resources
  • File System - Write (Deno: write):
    • Resources
  • Network (Deno: net):
    • Resources

🧩 APIs

  • ts function invokeDenoNodeJSTransformer(options: DenoNodeJSTransformerOptions): Promise<void>;
  • ts interface DenoNodeJSTransformerOptions { copyAssets?: (string | DenoNodeJSTransformerCopyAssetsOptions)[]; emitDecoratorMetadata?: boolean; entrypoints: DenoNodeJSTransformerEntrypoint[]; filterDiagnostic?: BuildOptions["filterDiagnostic"]; fixInjectedImports?: boolean; generateDeclaration?: boolean; generateDeclarationMap?: boolean; importsMap?: string; lib?: LibName[]; libCheck?: boolean; mappings?: SpecifierMappings; metadata: Metadata; outputDirectory?: string; outputDirectoryPreEmpty?: boolean; root?: string; shims?: DenoNodeJSTransformerShimOptions; target?: ScriptTarget; useTSLibHelper?: boolean; noImplicitAny?: boolean; noImplicitReturns?: boolean; noImplicitThis?: boolean; noStrictGenericChecks?: boolean; noUncheckedIndexedAccess?: boolean; strictBindCallApply?: boolean; strictFunctionTypes?: boolean; strictNullChecks?: boolean; strictPropertyInitialization?: boolean; useUnknownInCatchVariables?: boolean; }

[!NOTE] - For the full or prettier documentation, can visit via: - Deno CLI deno doc - JSR

✍️ Examples

  • ts await invokeDenoNodeJSTransformer({ entrypoints: [{ name: ".", path: "./mod.ts" }], metadata: { name: "@hugoalh/deno-nodejs-transformer-test", version: "0.7.0", description: "Demo of Deno NodeJS Transformer.", keywords: [ "dnt", "test" ], homepage: "https://github.com/hugoalh/deno-nodejs-transformer#readme", bugs: { url: "https://github.com/hugoalh/deno-nodejs-transformer/issues" }, license: "MIT", author: "hugoalh", repository: { type: "git", url: "git+https://github.com/hugoalh/deno-nodejs-transformer.git" }, scripts: { }, engines: { }, private: false, publishConfig: { access: "public" } }, outputDirectory: "npm", outputDirectoryPreEmpty: true });

Owner

  • Name: hugoalh
  • Login: hugoalh
  • Kind: user
  • Location: Everywhere
  • Company: @hugoalh-studio

Lead of @hugoalh-studio; Full time software developer; Part time freelancer

Citation (CITATION.cff)

# yaml-language-server: $schema=https://citation-file-format.github.io/1.2.0/schema.json
cff-version: "1.2.0"
title: "Deno NodeJS Transformer"
message: "If you use this software, please cite it using the metadata from this file."
type: "software"
authors:
  - name: "hugoalh"
repository-code: "https://github.com/hugoalh/deno-nodejs-transformer"
keywords:
  - "build"
  - "builder"
  - "deno"
  - "nodejs"
  - "package"
  - "transform"
  - "transformer"
license: "MIT"

GitHub Events

Total
  • Release event: 9
  • Delete event: 5
  • Push event: 66
  • Pull request review event: 3
  • Pull request event: 5
  • Create event: 12
Last Year
  • Release event: 9
  • Delete event: 5
  • Push event: 66
  • Pull request review event: 3
  • Pull request event: 5
  • Create event: 12

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 15
  • Average time to close issues: N/A
  • Average time to close pull requests: about 20 hours
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 15
Past Year
  • Issues: 0
  • Pull requests: 15
  • Average time to close issues: N/A
  • Average time to close pull requests: about 20 hours
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 15
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (16)
Top Labels
Issue Labels
Pull Request Labels
Priority/Low 🟢 (16) Type/Dependency 📦 (16) Platform/GitHubActions (16)

Dependencies

.github/workflows/invoke-codeql-analysis.yml actions
  • actions/checkout v4.2.1 composite
  • github/codeql-action/analyze v3.26.13 composite
  • github/codeql-action/autobuild v3.26.13 composite
  • github/codeql-action/init v3.26.13 composite
.github/workflows/invoke-devskim-analysis.yml actions
  • actions/checkout v4.2.1 composite
  • github/codeql-action/upload-sarif v3.26.13 composite
  • microsoft/DevSkim-Action v1.0.14 composite
.github/workflows/review-deno-code.yml actions
  • actions/cache/restore v4.1.1 composite
  • actions/cache/save v4.1.1 composite
  • actions/checkout v4.2.1 composite
  • denoland/setup-deno v2.0.1 composite
.github/workflows/scan-virus.yml actions
  • actions/checkout v4.2.1 composite
  • hugoalh/scan-virus-ghaction/clamav v0.20.1 composite
.github/workflows/sync-labels.yml actions
  • EndBug/label-sync v2.3.3 composite
  • actions/checkout v4.2.1 composite