https://github.com/yisraelx/ganuz
https://github.com/yisraelx/ganuz
descriptor javascript metadata modular modules ponyfill prototype reflection typescript utilities utils
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yisraelx/ganuz
- Owner: yisraelx
- License: mit
- Created: 2019-04-02T12:46:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T03:20:59.000Z (almost 7 years ago)
- Last Synced: 2025-09-20T04:54:38.271Z (9 months ago)
- Topics: descriptor, javascript, metadata, modular, modules, ponyfill, prototype, reflection, typescript, utilities, utils
- Language: TypeScript
- Size: 429 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Ganuz
[](https://travis-ci.org/yisraelx/ganuz)
[](https://codecov.io/gh/yisraelx/ganuz)
[](https://github.com/yisraelx/ganuz/blob/master/LICENSE)
[](https://www.typescriptlang.org)
[](http://commitizen.github.io/cz-cli/)
[](https://lernajs.io/)
[](https://github.com/facebook/jest)
**Ganuz is utilities modules, written in typescript.**
## Packages structure
* The code is divided into many small modules and each module is a package in itself ([Packages List](https://github.com/yisraelx/ganuz/blob/master/PACKAGES.md)).
* Each package in the scoop has only one function or class and it in the default export of the package.
* Group package brings together several modules from the scope, and in the export has access to all modules.
**Marks:**
* "**-**": __@{scope}/-{name}__ - Group package
* "**_**": **@{scope}/_{name}** - Internal package
## Install
```sh
$ npm install --save @ganuz/-all
```
*Or install only the module you need*
```sh
$ npm install --save @ganuz/get
```
## Use
**Modules**
```ts
import { set } from '@ganuz/-all';
```
*Or import only the module you need*
```ts
import { default as hasOwn } from '@ganuz/has-own';
```
**Browser**
```html
<script>
```
*Or import only the module you need*
```html
<script src="https://unpkg.com/@ganuz/construct/bundle.umd.min.js"><script>
```
```ts
let { construct } = G;
```
## Compatibility
These modules are written in typescript and available in ES5 and ES6 standard.
* main - commonjs module and es5 standard (index.js)
* module - es2015 module and es5 standard (index.esm.js)
* esnext - es2015 module and current es standard (index.es.js)
* browser - bundle in umd format includes all dependencies in es5 standard (bundle.umd.js, bundle.umd.min.js)
* types - typescript declaration file (index.d.ts)
## Contribute
**Pull requests are welcome!**
**Install** - it will install the dependencies and link all workspaces packages.
```sh
$ yarn install
```
**Test** - it will run all workspaces tests.
```sh
$ yarn test
```
**Build** - it will build all the packages for release.
```sh
$ yarn build
```
## License
Copyright © [Yisrael Eliav](https://github.com/yisraelx),
Licensed under the [MIT license](https://github.com/yisraelx/ganuz/blob/master/LICENSE).