npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@noshift.js/lint

v0.1.0

Published

A linter for NoShift.js (.nsjs) files

Downloads

27

Readme

npm license

@noshift.js/lint

English | 日本語

A linter for NoShift.js (.nsjs) files

[!Important]
⚠ Breaking Changes (v0.1.0): Syntax changes in NoShift.js v0.15.0 — ^3 is now #, ^6 is now Capitalize, ^\ is now _. New keyword aliases: or, and, @or, @and.


Installation

npm install -D @noshift.js/lint

Or globally:

npm install -g @noshift.js/lint

CLI Usage

# Lint all .nsjs files in rootdir (reads nsjsconfig.json)
nslint

# Lint specific files
nslint src/index.nsjs src/utils.nsjs

# Create nsjslinter.json with default rules
nslint init

| Command | Alias | Description | |---|---|---| | nslint | | Lint all .nsjs files in rootdir | | nslint <file> [file...] | | Lint specific files | | nslint init | nslint create | Create nsjslinter.json with defaults | | nslint version | nslint -v | Show version | | nslint help | nslint -h | Show help |


Configuration

Create a nsjslinter.json at the project root (or run nslint init):

{
  "rules": {
    "unclosed-string": "error",
    "unclosed-comment": "error",
    "unclosed-template-expr": "error",
    "unknown-caret-sequence": "error",
    "lone-caret": "error",
    "capitalize-eof": "error",
    "uppercase-in-code": "warning",
    "trailing-whitespace": "off",
    "no-consecutive-blank-lines": "off"
  }
}

Each rule can be set to "error", "warning", or "off".


Rules

| Rule | Default | Description | |---|---|---| | unclosed-string | error | Unclosed string literal (^2, ^7, ^@) | | unclosed-comment | error | Unclosed block comment (/^:...^:/) | | unclosed-template-expr | error | Unclosed template expression (^4^[...^]) | | unknown-caret-sequence | error | Unknown ^X sequence | | lone-caret | error | Lone ^ at end of file | | capitalize-eof | error | ^6 at end of file with no character to capitalize | | uppercase-in-code | warning | Uppercase letter in code (use ^6 instead) | | trailing-whitespace | off | Trailing whitespace at end of line | | no-consecutive-blank-lines | off | Consecutive blank lines |


Programmatic API

ESM

import { lint, createDefaultConfig, getRuleNames } from "@noshift.js/lint";

const messages = lint(source);
for (const m of messages) {
  console.log(`${m.line}:${m.column} [${m.severity}] ${m.message} (${m.rule})`);
}

CJS

const { lint, createDefaultConfig, getRuleNames } = require("@noshift.js/lint");

const messages = lint(source);
for (const m of messages) {
  console.log(`${m.line}:${m.column} [${m.severity}] ${m.message} (${m.rule})`);
}

API Reference

| Function | Description | |---|---| | lint(source, config?) | Lint source code. Returns { line, column, message, severity, rule }[] | | createDefaultConfig() | Returns a default nsjslinter.json config object | | getDefaultRules() | Returns the default rules map | | getRuleNames() | Returns an array of all rule names | | loadConfigSync(path) | Load and parse a nsjslinter.json file |


Ecosystem / Links


License

MIT © otoneko.