Socket
Socket
Sign inDemoInstall

@kosmic/types

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @kosmic/types

An awesome opinionated starter template for new projects!


Version published
Maintainers
1
Created

Readme

Source

Node.js CI

spence-s-starter-template

Hello, this is my personal, bleeding edge, starter template for creating node.js libraries.

Features Include:

  • MIT License
  • Configured for ESM only output
  • tsx is built in for easy, out-of-the box development
  • editorconfig
  • testing with node's native test runner - pre-setup for typescript ESM
  • tests run on push to main in github actions
  • linting with xo (space configuration)
  • formatting with prettier and xo
  • markdown linting and formatting with prettier
  • package.json linting and formatting with prettier-plugin-package-json and npm-package-json-lint
  • np for publishing to npm

Getting starting

Installation

This is a github template and is best used by using the github UI to start a new project.

Once you've cloned the template for a new repository, the first thing you want to do is to make sure all the deps are up to date!

  1. Run npm install to get the immediately needed deps
  2. run npm run update to have npm-check-updates run an interactive program to update all the other deps.
  3. run npm run test to ensure updates haven't broken anything themselves (this typically shouldn't happen).

Run the hello world

This starter-template is already set up to run typescript code out of the box via ts-node's experimental loader.

npm run dev

Will compile the src/index.ts in memory and execute it.

Building the project

npm run build will build the project to the dist directory (which is already gitignored).

Developing

npm run dev will build the project in memory and execute the script.

For a nodemon like experience, we leverage the new nodejs experimental watch flag.

npm run dev:watch to start in watch mode.

Releasing

To encourage best practices for publishing an open source package on npm, np is installed by default.

npm run release

FAQs

Last updated on 20 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc