Socket
Socket
Sign inDemoInstall

@coffeekraken/s-data-file-js

Package Overview
Dependencies
631
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coffeekraken/s-data-file-js

Nice and easy to use class to load data from "JSON" or "JS" files


Version published
Maintainers
1
Created

Readme

Source

{{#> layout-readme }}

SDataFileJs

This package expose a simple SDataFileJs class that allows you to load data from different file types like js and json.

Features

  • Supported file types:
    • .js: A js file that export a function or directly some data
    • .json: Simple json file
  • Nothing more, nothing less...

Usage

Here's a simple example how to use the SDataFileJs class:

import __SDataFileJs from '@coffeekraken/s-data-file-js';
const dataFromJson = await __SDataFileJs.load('/my/cool/file.json');

API

For more information about the API, please check out the API documentation

{{/ layout-readme }}

FAQs

Last updated on 18 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc