open-index/open-npm huggingface dataset:
npm package: @redpeacock78/unienv
Description: Unified environment variable management for Node.js, Deno (Deno Deploy), and Bun.
Author: redpeacock78
Latest version: 0.0.19

# UniEnv

***Unified environment variable management for Node.js, Deno (Deno Deploy), and Bun.***

## Usage
- ### Code
  ### Node.js and Bun
  ```javascript
  import UniEnv from "@redpeacock78/unienv";
  ```

  ### Deno
  ```typescript
  import UniEnv from "npm:@redpeacock78/unienv";
  ```

  ### Example
  ```javascript
  // Referenced from .env file
  const getEnv = UniEnv.get("EXAMPLE");
  if (getEnv.isNg()) console.error(getEnv.error.message);
  if (getEnv.isOk()) {
    if (!getEnv.value) {
      console.error("EXAMPLE is not set!");
    } else {
      console.log(getEnv.value);
    }
  }


  // Set, reference, and delete environment variables
  // Set environment variables
  const setKey = UniEnv.set("KEY", "value");
  if (setKey.isNg()) console.error(setKey.error.message);
  if (setKey.isOk()) console.log("Successfully set environment variables!");

  // Reference environment variables
  const getKey = UniEnv.get("KEY");
  if (getKey.isNg()) console.error(getKey.error.message);
  if (getKey.isOk()) {
    if (!getKey.value) {
      console.error("KEY is not set!");
    } else {
      console.log(getKey.value);
    }
  }
  
  // Delete environment variables
  const rmKey = UniEnv.delete("KEY");
  if (rmKey.isNg()) console.error(rmKey.error.message);
  if (rmKey.isOk()) console.log("Successfully deleted environment variables!");
  ```

- ### Run
  ### Node.js
  ```bash
  node index.js
  ```
  ### Bun
  ```bash
  bun run index.js
  ```
  ### Deno
  ```bash
  deno run --allow-read --allow-env index.ts
  ```

## Runtime Version Requirements
|Node.js|Bun|Deno|
|:-:|:-:|:-:|
|✅ `14.0.0` or higher|✅ `1.0` or higher|✅ `1.30.0` or higher|

## License
MIT
npm package: @redpencil/ember-rdfstore
Description: Ember addon wrapping the rdfstore-js library.
Latest version: 0.1.0

# ember-rdfstore

[rdfstore](https://www.npmjs.com/package/rdfstore) as an injectable Ember Service.

## Installation

```bash
ember install ember-rdfstore
```

## Usage

Inject the `rdfstore` service and use it as you would use the [rdfstore](https://www.npmjs.com/package/rdfstore) library. Except for the callback arguments which are implemented as Ember Promises.

```javascript
export default Ember.Component.extend({
  rdfstore: Ember.inject.service(),
  actions: {
    load(ttl) {
      this.get('rdfstore').load('text/turtle', ttl, 'http://mu.semte.ch/application').then( (results) => {
        ...
      });
    }
  }
```

The following methods are available on the `rdfstore` service and will be proxied to the native store:
* clear(): Promise
* delete(): Promise
* execute(): Promise
* executeWithEnvironment(): Promise
* graph(): Promise
* insert(): Promise
* load(): Promise
* node(): Promise

Have a look at [the in-code documentation of the rdfstore library](https://github.com/antoniogarrote/rdfstore-js/blob/master/src/store.js) that specifies the parameters of each method. The final `callback` argument of each method is implemented as an Ember Promise by the `rdfstore` service.

The [native store](https://github.com/antoniogarrote/rdfstore-js/blob/master/src/store.js) from the `rdfstore` library is directly accessible through `rdfstore.content`.