@sharyn/check-setup

2.0.9 • Public • Published

🌹 @sharyn/check-setup

npm

It is used internally by Sharyn to determine which features to load.

🌹 Install

yarn add @sharyn/check-setup

🌹 Usage

import { hasPackage, hasFile } from '@sharyn/check-setup'

hasPackage('koa') // true or false based on your package.json
hasPackage('koa', true) // true or Error

hasFile('webpack.config.js') // true or false from the root of your project
hasFile('webpack.config.js', true) // true or Error

Readme

Keywords

none

Package Sidebar

Install

npm i @sharyn/check-setup

Weekly Downloads

30

Version

2.0.9

License

MIT

Unpacked Size

11.3 kB

Total Files

18

Last publish

Collaborators

  • sharyn