New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ntlab/ntjs

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ntlab/ntjs

NODE-NTJS Javascript

latest
Source
npmnpm
Version
3.1.0
Version published
Maintainers
1
Created
Source

Code Javascript Everywhere!

This is a port of PHP-NTJS.

NODE-NTJS allows to dynamically manage your javascripts, stylesheets, and scripts so you can focus on your code. You can code your javascript using ES6 class, or write directly in the javascript code, even on template.

JQuery and SemanticUI/FomanticUI

Support for popular javascript like JQuery, SemanticUI/FomanticUI.

Using external CDN

An external CDN is also supported, simply pass CDN parameters to ScriptManager.

const { ScriptManager } = require('@ntlab/ntjs');

const cdn = {
    jquery: {
        version: '3.5.1',
        url: 'https://code.jquery.com/%NAME%',
        js: {
            jquery: 'jquery-%VER%',
            'jquery.min': 'jquery-%VER%.min'
        }
    },
    'semantic-ui': {
        version: '2.8.7',
        url: 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/%VER%/%NAME%'
    }
}
ScriptManager.parseCdn(cdn);

Example Usage

See usage example in NODE-EXPRESS-MIDDLEWARE.

TODO

  • Script output minifying is not yet supported.

Keywords

ntjs

FAQs

Package last updated on 21 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts