Skip to content

flex-development/is-builtin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-builtin

conventional commits code style: prettier module type: esm npm license typescript

Ponyfill for module.isBuiltin

Install

yarn add @flex-development/is-builtin

GitHub Package Registry

To install from the GitHub Package Registry, setup a .npmrc or .yarnrc.yml file to authenticate with the registry.

A Personal Access Token with the read:packages scope is required.

.npmrc

//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@flex-development:registry=https://npm.pkg.github.com/

.yarnrc.yml

npmRegistries:
  //npm.pkg.github.com:
    npmAlwaysAuth: true
    npmAuthToken: ${GITHUB_TOKEN}

npmScopes:
  flex-development:
    npmRegistryServer: https://npm.pkg.github.com

Git

See npm-install or Git - Protocols | Yarn for details on requesting a specific branch, commit, or tag.

NPM

npm i flex-development/is-builtin

Yarn

yarn add @flex-development/is-builtin@flex-development/is-builtin

Usage

import isBuiltin from '@flex-development/is-builtin'

console.log(isBuiltin('@flex-development/is-builtin')) // false
console.log(isBuiltin('node:fs/promises')) // true
console.log(isBuiltin('node:fs')) // true
console.log(isBuiltin('fs')) // true

About

Universal drop-in replacement for module.isBuiltin

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •