0.0.1 • Published 1 month ago
inject-meta-tag v0.0.1
inject-meta-tag
Injects <meta>
into document head.
Background
Injects custom <meta>
into document head. For example, you can use <meta>
to know what version of your package is being used in a web app.
How to use
import { injectMeta, npm } from 'inject-meta-tag';
// Will inject <meta name="my-package" content="1.0.0" /> into document head.
injectMeta('my-package', '1.0.0');
// Will inject <meta name="npm:my-package" content="version=1.0.0" /> into document head.
npm('my-package', { version: '1.0.0' });
API
The following is simplified version of the API. Please refer to our published typings for the full version.
injectMeta(name: string, content?: string | undefined): void;
npm(name: string, init: { version: string }): void;
Behaviors
Contributions
Like us? Star us.
Want to make it better? File us an issue.
Don't like something you see? Submit a pull request.
0.0.1
1 month ago
0.0.1-main.cc260a4
1 month ago
0.0.2-main.2682c14
1 month ago
0.0.0-main.7e8a47e
1 month ago
0.0.0-main.4b205ef
5 months ago