open-index/open-npm huggingface dataset:
npm package: @ptitmouton/coconutjs
Description: NodeJS Module to encode videos with Coconut, a Cloud Video Encoding Service built for developers
Author: Alexis Rinaldoni
Latest version: 3.0.0-beta.3

# NodeJS client Library for encoding Videos with Coconut

This is a fork from https://github.com/opencoconut/coconutjs

## Install

```console
npm install @ptitmouton/coconutjs
```

## Submitting the job

Use the [API Request Builder](https://app.coconut.co/job/new) to generate a config file that match your specific workflow.

Example of `coconut.conf`:

```ini
var s3 = s3://accesskey:secretkey@mybucket

set webhook = http://mysite.com/webhook/coconut?videoId=$vid

-> mp4  = $s3/videos/video_$vid.mp4
-> webm = $s3/videos/video_$vid.webm
-> jpg:300x = $s3/previews/thumbs_#num#.jpg, number=3
```

Here is the javascript code to submit the config file:

```javascript
import Coconut from '@ptitmouton/coconutjs';

const coconut = new Coconut('k-api-key');
// or add via COCONUT_API_KEY env var, just:
const coconut = new Coconut();

const job = await coconut.createJob({
  'conf': 'coconut.conf',
  'source': 'https://s3-eu-west-1.amazonaws.com/files.coconut.co/test.mp4',
  'vars': {'vid': 1234}
});

if (job.status == 'ok') {
  console.log(job.id);
} else {
  console.log(job.error_code);
  console.log(job.error_message);
}
```

You can also create a job without a config file. To do that you will need to give every settings in the method parameters. Here is the exact same job but without a config file:

```javascript
import Coconut from '@ptitmouton/coconutjs';

const coconut = new Coconut('k-api-key');
// or add via COCONUT_API_KEY env var, just:
const coconut = new Coconut();

vid = 1234
s3 = 's3://accesskey:secretkey@mybucket'

const job = await coconut.createJob({
  'api_key': 'k-api-key',
  'source': 'http://yoursite.com/media/video.mp4',
  'webhook': 'http://mysite.com/webhook/coconut?videoId=' + vid,
  'outputs': {
    'mp4': s3 + '/videos/video_' + vid + '.mp4',
    'webm': s3 + '/videos/video_' + vid + '.webm',
    'jpg:300x': s3 + '/previews/thumbs_#num#.jpg, number=3'
  }
});
```

Other example usage:

```javascript
// Getting info about a job
const job = await coconut.getJob(18370773);

// Retrieving metadata
const metadata = await coconut.getAllMetadata(18370773);

// Retrieving the source file metadata only
const metadata = coconut.getMetadataFor(18370773, 'source');

// use every function callback-style
coconut.getJob(18370773, job => {
  // do something with job
});
```

Note that you can use the environment variable `COCONUT_API_KEY` to set your API key.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


*Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).*

---

* Coconut website: http://coconut.co
* API documentation: http://coconut.co/docs
* Contact: [support@coconut.co](mailto:support@coconut.co)
* Twitter: [@OpenCoconut](http://twitter.com/opencoconut)
npm package: @ptloader/pcd
Description: Framework-independent loader for the PCD format
Latest version: 3.3.27

# ptloader/pcd

[loaders.gl](https://loaders.gl/docs) is a collection of framework-independent 3D and geospatial parsers and encoders.

This module contains loaders for the PCD format.

For documentation please visit the [website](https://loaders.gl).
npm package: @ptloader/schema
Description: Table format APIs for JSON, CSV, etc...
Latest version: 3.3.27

# ptloader/schema

This module contains:

- Classes and APIs for manipulating tabular data output from loaders.gl table category loaders (CSV, JSON, ...).

[loaders.gl](https://loaders.gl/docs) is a collection of framework-independent 3D and geospatial parsers and encoders.

Please visit the [website](https://loaders.gl).
npm package: @ptloader1/pcd
Description: Framework-independent loader for the PCD format
Latest version: 3.3.12

# @loaders.gl/pcd

[loaders.gl](https://loaders.gl/docs) is a collection of framework-independent 3D and geospatial parsers and encoders.

This module contains loaders for the PCD format.

For documentation please visit the [website](https://loaders.gl).
npm package: @ptloader1/schema
Description: Table format APIs for JSON, CSV, etc...
Latest version: 3.3.12

# @loaders.gl/schema

This module contains:

- Classes and APIs for manipulating tabular data output from loaders.gl table category loaders (CSV, JSON, ...).

[loaders.gl](https://loaders.gl/docs) is a collection of framework-independent 3D and geospatial parsers and encoders.

Please visit the [website](https://loaders.gl).
npm package: @ptolemy2002/cra-template-react-app
Description: CRA Template for creating a React App
Author: Ptolemy2002
Latest version: 0.4.3

# React App CRA Template
This is a template intended to be used with the [create-react-app](https://www.npmjs.com/package/create-react-app) tool. It contains methods of building your app.
For now, the app makes use of React 18 and does not use TypeScript. To apply the template, run the following command:

```npx create-react-app [app-name] --template @ptolemy2002/react-app```

## Commands
The following commands exist in the project resulting from applying this template:
- `npm run uninstall` - Uninstalls all dependencies for the app
- `npm run reinstall` - Uninstalls and then Reinstalls all dependencies for the app
- `npm run start` - Starts the app
- `npm run build` - Builds the app
- `npm run test` - Tests the app
- `npm run eject` - Ejects the app
npm package: @ptolemy2002/cra-template-react-library
Description: CRA Template for creating a React Library
Author: Ptolemy2002
Latest version: 2.3.9

# React Library CRA Template
This is a template intended to be used with the [create-react-app](https://www.npmjs.com/package/create-react-app) tool. It contains methods of building and publishing your library to npm.
For now, the library makes use of React 18 and does not use TypeScript. To apply the template, run the following command:

```npx create-react-app [library-name] --template @ptolemy2002/react-library```

Note that, because of how create-react-app works, dependencies are installed on the root directory automatically and package.json is set up. This is not necessary for either the library or the example, as those are each subdirectories of the root directory. node_modules, package.json, and package-lock.json on the root directory are safe to delete.

## Commands
The following commands exist in the project resulting from applying this template:
- `npm run uninstall` - Uninstalls all dependencies for the library
- `npm run reinstall` - Uninstalls and then Reinstalls all dependencies for the library
- `npm run example-uninstall` - Uninstalls all dependencies for the example app
- `npm run example-install` - Installs all dependencies for the example app
- `npm run example-reinstall` - Uninstalls and then Reinstalls all dependencies for the example app
- `npm run example-start` - Starts the example app after building the library
- `npm run build` - Builds the library
- `npm run release` - Publishes the library to npm without changing the version
- `npm run release-patch` - Publishes the library to npm with a patch version bump
- `npm run release-minor` - Publishes the library to npm with a minor version bump
- `npm run release-major` - Publishes the library to npm with a major version bump