eln
/
0.3.8-alpha.5
eln 0.3.8-alpha.5
Install from the command line:
Learn more about npm packages
$ npm install @cdd/eln@0.3.8-alpha.5
Install via package.json:
"@cdd/eln": "0.3.8-alpha.5"
About this version
- In terminal run
yarn serve -- --env INJECT_BUILD=1
. - Install TamperMonkey chrome extension. Allow it to execute in Incognito mode.
- Add
tampermonkey/prodInject.js
script from repository to your Tampermonkey as a new script. - Go to url like
https://app.collaborativedrug.com/vaults/<project_id>/eln/entries/<entry_id>
in Chrome incognito mode. - To check that everything is working, you can find in Inspector
div id="elnEntry"
. Its only child should have classinjected
. - If something went wrong with injection, first of all cleare the cash of Tampermonkey.
- Open options of Tampermonkey extension in browser
- Select script
- Open Externals tab
- Delete data in Resources
To install this package, you need to set up your project to download packages from GitHub Packages. Here is the step-by-step guide:
- First, you need to create a personal access token in GitHub.
- Go to your GitHub Settings (click your profile picture in the top right > Settings)
- On the left sidebar, click "Developer Settings"
- Click "Personal access tokens"
- Click "Generate new token"
- Give your token a name, and check the box "read:packages"
- Click "Generate token" at the bottom
Note: Be sure to copy the token now. You will not be able to see it again!
- Create or modify the .npmrc file in your project root directory (or your home directory, if you want to use it for all your projects). The file should contain the following lines:
registry=https://registry.npmjs.org/
@cdd:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
Set your environment variable GITHUB_TOKEN to the personal access token you just created. Please note that the environment variable should be set in the environment where npm/yarn commands are run.
Unix-based example:
export GITHUB_TOKEN="your-token-goes-here"
- Now you are ready to install the package. You can use either yarn or npm:
yarn add @cdd/eln
or
npm install @cdd/eln
After installation, you can import the package in your JavaScript (or TypeScript) code:
const ElnEntry = require("@cdd/eln");
Or with ES6 import:
import { someFunction } from "@cdd/eln";
Assets
- eln-0.3.8-alpha.5.tgz
Download activity
- Total downloads 4
- Last 30 days 0
- Last week 0
- Today 0
Recent versions
View all- 14.5.0-59f865c7-709d-432d-99a6-57db0cda2354
- 14.5.0-4a602b7d-7209-447b-a2c2-9162ad997e1b
- 14.5.0-df2b2fd1-5faf-4100-b7a1-fba986833b9b
- 14.5.0-18fbcfc4-1c38-45a0-971e-1e5a057b0630
- 14.5.0-747ec771-e1b2-41a4-bca5-efe6ec6b4001
- 14.5.0-85313c0c-54ee-4b86-b574-d693947ce8f4
- 14.5.0-51b17fdd-061a-4837-89c8-09ede7de8b5e
- 14.5.0-67ddfc80-a925-48b8-8a7c-711a686af762
- 14.5.0
- 14.4.0