@sharyn/check-setup
v2.0.9
Published
[](https://www.npmjs.com/package/@sharyn/check-setup)
Readme
🌹 @sharyn/check-setup
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