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 🙏

© 2024 – Pkg Stats / Ryan Hefner

byots

v5.0.0-dev.20221103.1.34

Published

Bring your own TypeScript

Downloads

1,902

Readme

Bring your own TypeScript

Downloads Continuous Integration

Use the latest TypeScript, with complete access to the compiler API 🌹

NPM

Still Just TypeScript

  • byots will use whatever TypeScript version you install in your application. So you are actually using whatever TypeScript you bring in. However we highly recommend npm install typescript@next byots@latest so you don't get any JavaScriptFromTypeScript - TypeDefinitionFromByots inconsistencies.

But with the following advantage

With a liberal definition file. We expose internal APIs.

The definitions are updated daily automatically and our version numbers match the TypeScript nightly version numbers.

If you are working with the TypeScript compiler using import * as ts from 'typescript' and ts has everything you need, then use that. Otherwise if you find some API that isn't available on ts. but you can see if you do console.log(ts), then you would consider using byots.

Install

In your package.json

npm install byots@latest --save --save-exact

Each release is named after the day it was built and the git commit hash in Microsoft/TypeScript/master that it was built from. We recommend adding save-exact so you know exactly what you tested with.

Usage

Require

Use import * as ts from 'byots' and you get what import * as ts from 'typescript' would give you.

Alternatives

ts-expose-internals

https://github.com/nonara/ts-expose-internals

  • ts-expose-internals builds for new releases only to provide better stability - byots is nightly for bleeding edge experimentation.
  • ts-expose-internals uses module augmentation so you import typescript - byots reexports typescript so you import byots.