https://github.com/artdecocode/packetise
Bundles dependencies with the package.
https://github.com/artdecocode/packetise
Last synced: 11 months ago
JSON representation
Bundles dependencies with the package.
- Host: GitHub
- URL: https://github.com/artdecocode/packetise
- Owner: artdecocode
- License: mit
- Created: 2018-10-23T23:26:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T23:26:15.000Z (about 7 years ago)
- Last Synced: 2025-01-08T06:32:25.518Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://artdeco.bz
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# packetise
[](https://npmjs.org/package/packetise)
`packetise` is Bundles dependencies with the package.
```sh
yarn add -E packetise
```
## Table Of Contents
- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`packetise(arg1: string, arg2?: boolean)`](#mynewpackagearg1-stringarg2-boolean-void)
* [`Config`](#type-config)
- [Copyright](#copyright)
## API
The package is available by importing its default function:
```js
import packetise from 'packetise'
```
## `packetise(`
`arg1: string,`
`arg2?: boolean,`
`): void`
Call this function to get the result you want.
__`Config`__: Options for the program.
| Name | Type | Description | Default |
| --------- | --------- | ----------------- | ------- |
| shouldRun | _boolean_ | A boolean option. | `true` |
| __text*__ | _string_ | A text to return. | - |
```js
/* yarn example/ */
import packetise from 'packetise'
(async () => {
const res = await packetise({
text: 'example',
})
console.log(res)
})()
```
```
example
```
## Copyright
(c) [Art Deco][1] 2018
[1]: https://artdeco.bz