{"id":20474,"library":"printnode-ts","title":"typescript-library-starter","description":"A starter project for creating TypeScript libraries with zero setup. It provides RollupJS for optimized bundles, Jest for testing and coverage, Prettier and TSLint for code formatting, TypeDoc for automatic documentation, and optional semantic release with changelog generation. Version 0.0.1 is an early release; the package is not actively maintained and is intended as a template generator rather than a runtime library. It competes with other starters like create-react-library and tsdx, but is more opinionated.","status":"maintenance","version":"0.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install printnode-ts","lang":"bash","label":"npm"},{"cmd":"yarn add printnode-ts","lang":"bash","label":"yarn"},{"cmd":"pnpm add printnode-ts","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used for bundling output formats (ESM, CJS, UMD).","package":"rollup","optional":false},{"reason":"Testing framework for unit tests and coverage.","package":"jest","optional":false},{"reason":"Code formatting tool integrated via TSLint.","package":"prettier","optional":false},{"reason":"Core language for type-safe library development.","package":"typescript","optional":false}],"imports":[{"note":"The package is a template, so `myLib` is a placeholder; actual exports depend on your library's implementation.","symbol":"default","correct":"import myLib from 'printnode-ts'"},{"note":"For modular imports from the `dist/lib` folder of your built library.","symbol":"something","correct":"import something from 'printnode-ts/dist/lib/something'"},{"note":"CJS require works with the default export; destructuring `default` is unnecessary and may cause errors.","wrong":"const { default } = require('printnode-ts')","symbol":"require","correct":"const myLib = require('printnode-ts')"}],"quickstart":{"code":"// Clone the repository and set up your library name\ngit clone https://github.com/alexjoverm/typescript-library-starter.git my-library\ncd my-library\nnpm install\n\n// After setup, edit src/index.ts to export your API\nexport function greet(name: string): string {\n  return `Hello, ${name}!`;\n}\n\n// Build the library\nnpm run build\n\n// Test it\nimport { greet } from './dist';\nconsole.log(greet('World')); // Hello, World!","lang":"typescript","description":"Shows full setup: cloning the starter, creating a simple TypeScript export, building, and verifying the output."},"warnings":[{"fix":"Do not install 'printnode-ts' from npm expecting a usable library. Instead, use the template to scaffold your own library.","message":"This is a starter template, not a published library. The npm package 'printnode-ts' is likely a placeholder; the actual code from the README clones a repository, not installs from npm.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Migrate to ESLint with typescript-eslint plugin.","message":"TSLint is deprecated in favor of ESLint. The starter uses TSLint which may cause compatibility issues with modern TypeScript.","severity":"deprecated","affected_versions":"*"},{"fix":"Update engines to Node >=12 or use an older version of dependencies.","message":"The 'engines' field in package.json specifies Node >=6.0.0, but contemporary TypeScript and Rollup plugins may require Node 10+.","severity":"gotcha","affected_versions":"*"},{"fix":"Remove Greenkeeper badge or replace with Renovate or Dependabot configuration.","message":"Greenkeeper badge is outdated; the service has been rebranded to Greenkeeper (later acquired) and may not work.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use the starter template to create your own library; do not npm install 'printnode-ts'.","cause":"The package 'printnode-ts' is not published on npm; it's a placeholder from the starter.","error":"Cannot find module 'printnode-ts'"},{"fix":"Run npm install from the cloned repository root.","cause":"The starter expects TSLint as a devDependency but may not be installed if you skipped npm install.","error":"Error: TSLint is not installed"},{"fix":"Use `const myLib = require('mylib')` instead.","cause":"Using `const { default } = require('mylib')` when the CommonJS module exports as default directly.","error":"TypeError: Cannot destructure property 'default' of ..."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}