Socket
Book a DemoInstallSign in
Socket

@zx-libs/header

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zx-libs/header

Add some lines to the file header

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

header

Downloads Version License

Add specified information to the file header, such as version, copyright, etc.

Used in JS files

import { header } from '@zx-libs/header'

header('./dist', {
  name: 'libs-name',
  version: '1.0.0',
  author: 'capricorncd<capricorncd@qq.com>',
  homepage: 'https://github.com/capricorncd/zx-libs#readme',
})

// or
header('./dist', [
  '/*!',
  ' * libs-name version 1.0.0',
  ' * Author: capricorncd<capricorncd@qq.com>',
  ' * Homepage: https://github.com/capricorncd/zx-libs#readme',
  ' * Released on: 2024-04-21 17:31:24 (GMT+0900)',
  ' */',
])

Use in command line

# all files in the dist folder
node node_modules/@zx-libs/header --dir=dist
# one file prepend-file.txt
node node_modules/@zx-libs/header --dir=dist --prepend-file=prepend-file.txt

prepend-file.txt

/*!
 * libs-name version 1.0.0'
 * Author: capricorncd<capricorncd@qq.com>'
 * Homepage: https://github.com/capricorncd/zx-libs#readme'
 * Released on: 2024-04-21 17:31:24 (GMT+0900)'
 */

Keywords

@zx-libs/header

FAQs

Package last updated on 23 Oct 2024

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