Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

header-insertor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

header-insertor

A simple tool to insert text at the beginning of files.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

header-insertor

A simple tool to insert some text before file's content.

Install

npm install header-insertor -g

Usage

Usage: header-insertor [options] <file ...>

Options:
  -V, --version                  output the version number
  -p, --position <n>             string, a dictionary or file
  -t, --text <n>                 string, the text which will be inserted
  -e, --encoding <n>             string, character encoding type, one of
            'ascii','utf8','utf16le','ucs2','base64','latin1','binary','hex',default 'utf8'
  -f, --file-extensions <items>  list, A list of extensions which will be inserted, default null
  -h, --help                     output usage information

example

header-insertor -p ./test.js
Please specify the <text to insert>:

Then,the program will ask you to input the text which you want to insert;Please input:/* eslint-disable */ \n;

input:
const a = 1;
output
/* eslint-disable */
const a = 1;

Keywords

FAQs

Package last updated on 19 Feb 2019

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc