Socket
Book a DemoInstallSign in
Socket

hyfileparser

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyfileparser

Reads a file and returns it as an array of lines

0.9.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Hei Yuki File Parser (hyfileparser)

This is a very small module that converts a file into an array of strings. Each element of the array is a line in the file.

Quick Start

npm install hyfileparser

You then easily require the module:

const hyparser = require('hyfileparser');

How to Use

const hyparser = require('./parser.js');


hyparser.fileToArray(PATH_TO_YOUR_FILE).then((arr) => {
    //arr is the array returned by the function
    console.log(arr);
    //Log or do whatever :3
}, (err) => {
    //err is an error message
    //Simply log it to know what's wrong
    console.log(err);
});

License

MIT heiyukidev

About the Author

I'm Khaled Romdhane and my handle is @heiyukidev

If you stumble across this handle @heiyuki that's me, but not so professional.

Keywords

files

FAQs

Package last updated on 23 Feb 2017

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.