Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A Node.js wrapper for the Epik.com domain registration API.
Latest version: 1.0.0
npm install epik.com
npm test
For complete API documentation, up-to-date parameters, reponses and errors, please refer to https://registrar.epik.com/docs/epik-API.pdf.
Access to the Epik.com API requires an account. Sign up at https://www.epik.com.
Log into your account and navigate to the API settings page at https://registrar.epik.com/account/api-settings by selecting Account > View/Manage Profile > then select API Settings in the left sidebar.
Generate your IP Address and find your Signature
at the top of the page.
//1. Import epik.com
const Epik = require('epik.com');
//2. Initiate the Epik API Client with your API Signature
const EpikClient = new Epik(EPIK_API_SIGNATURE);
//3. Make calls
var func = async() => {
let data = await EpikClient.domains.checkAvailability('giraffecookie.com');
};
You'll need to set up a one parameter before using the Epik.com module. Upon instantiation, set the API Signature.
The API Signature is required to be set before making any valid requests.
EpikClient.setSignature(EPIK_API_SIGNATURE);
//Alternatively
EpikClient.signature = EPIK_API_SIGNATURE;
This module provides helper constants for use in calls.
Epik.PERIODS
The acceptable time periods for domain registrations.
Key | Usage | Description |
---|---|---|
ONE_YEAR | Epik.PERIODS.ONE_YEAR | 1 Year |
TWO_YEARS | Epik.PERIODS.TWO_YEARS | 2 Years |
THREE_YEARS | Epik.PERIODS.THREE_YEARS | 3 Years |
FOUR_YEARS | Epik.PERIODS.FOUR_YEARS | 4 Years |
FIVE_YEARS | Epik.PERIODS.FIVE_YEARS | 5 Years |
SIX_YEARS | Epik.PERIODS.SIX_YEARS | 6 Years |
SEVEN_YEARS | Epik.PERIODS.SEVEN_YEARS | 7 Years |
EIGHT_YEARS | Epik.PERIODS.EIGHT_YEARS | 8 Years |
NINE_YEARS | Epik.PERIODS.NINE_YEARS | 9 Years |
TEN_YEARS | Epik.PERIODS.TEN_YEARS | 10 Years |
All calls using the EpikClient
are asynchronous.
All calls are returned in the following format:
{
success: Boolean,
message: String,
code: Number,
data: Object
}
The EpikClient splits up the currently available calls outline in the official Epik.com API documentation into one part.
Namespace | Usage | Description |
---|---|---|
domains | EpikClient.domains[...] | Calls related to domains |
Calls related to domains.
domains.lock()
Lock method is called to update domain statuses and change them from Ok
to ClientUpdateProhibited
, ClientTransferProhibited
, ClientDeleteProhibited
.
Params:
domains
: string|array
- A single domain or array of domainsUsage Example:
let data = await EpikClient.domains.lock('giraffecookie.com');
//
let data = await EpikClient.domains.lock(
['giraffecookie.com', 'giraffecookies.com']
);
domains.unlock()
The Unlock method sets domain status to Ok
.
Params:
domains
: string|array
- A single domain or array of domainsUsage Example:
let data = await EpikClient.domains.unlock('giraffecookie.com');
//
let data = await EpikClient.domains.unlock(
['giraffecookie.com', 'giraffecookies.com']
);
domains.setAuthCode()
This call sets desired authorization code for a domain. As per official documentaion, there is a code format you need to follow for this operation to succeed: 8 (eight) alphanumeric characters, having at least 1 (one) numeric, 1 (one) alphabetic, and 1 (one) special character.
Params:
domain
: string
- A single domaincode
: string
- The auth codeUsage Example:
let data = await EpikClient.domains.setAuthCode('giraffecookie.com', '1234!ABCD');
domains.setNameServers()
This call sets name servers for a single domain.
Params:
domain
: string
- A single domainnameservers
: string|array
- A single nameserver or an array of nameserversUsage Example:
let data = await EpikClient.domains.setNameServers('giraffecookie.com', 'ns.giraffecookie.com');
//
let data = await EpikClient.domains.setNameServers('giraffecookie.com',
['ns.giraffecookie.com', 'ns1.giraffecookie.com']
);
domains.setWhoIsInfo()
This call updates whois information. Each param has a prefix which tells what type of contact needs to be updated. You can update “Administrative” – A, “Billing” – B and “Technical” – T details.
Params:
domain
: string
- A single domainparams
: object
- Parameters to pass through to the requestparams.PRIVATE
: number
- {0
|1
}params.AORGANIZATION
: string
- "Administrative" (A) - Organization nameparams.ANAME
: string
- "Administrative" (A) - Nameparams.AEMAIL
: string
- "Administrative" (A) - Emailparams.AADDRESS
: string
- "Administrative" (A) - Addressparams.ACITY
: string
- "Administrative" (A) - Cityparams.ASTATE
: string
- "Administrative" (A) - Stateparams.AZIP
: string|number
- "Administrative" (A) - Zip codeparams.ACOUNTRY
: string
- "Administrative" (A) - Countryparams.ACOUNTRYCODE
: string
- "Administrative" (A) - Coutry codeparams.APHONE
: string|number
- "Administrative" (A) - Phone e.g. + 1.2120001111params.TORGANIZATION
: string
- "Technical" (T) - Organization nameparams.TNAME
: string
- "Technical" (T) - Nameparams.TEMAIL
: string
- "Technical" (T) - Emailparams.TADDRESS
: string
- "Technical" (T) - Addressparams.TCITY
: string
- "Technical" (T) - Cityparams.TSTATE
: string
- "Technical" (T) - Stateparams.TZIP
: string|number
- "Technical" (T) - Zip codeparams.TCOUNTRY
: string
- "Technical" (T) - Countryparams.TCOUNTRYCODE
: string
- "Technical" (T) - Country codeparams.TPHONE
: string|number
- "Technical" (T) - Phone e.g. + 1.2120001111params.BORGANIZATION
: string
- "Billing" (B) - Organization nameparams.BNAME
: string
- "Billing" (B) - Nameparams.BEMAIL
: string
- "Billing" (B) - Emailparams.BADDRESS
: string
- "Billing" (B) - Addressparams.BCITY
: string
- "Billing" (B) - Cityparams.BSTATE
: string
- "Billing" (B) - Stateparams.BZIP
: string|number
- "Billing" (B) - Zip codeparams.BCOUNTRY
: string
- "Billing" (B) - Countryparams.BCOUNTRYCODE
: string
- "Billing" (B) - Country codeparams.BPHONE
: string|number
- "Billing" (B) - Phone e.g. + 1.2120001111Usage Example:
let data = await EpikClient.domains.setWhoIsInfo('giraffecookie.com',
{
PRIVATE: 0,
TORGANIZATION: 'The Company',
BCITY: 'New York',
BSTATE: 'New York',
},
);
domains.checkAvailability()
This function is used to check if a domain is available for registration.
Params:
domains
: string|array
- A single domain or array of domainsUsage Example:
let data = await EpikClient.domains.checkAvailability('giraffecookie.com');
//
let data = await EpikClient.domains.checkAvailability(
['giraffecookie.com', 'giraffecookies.com']
);
domains.register()
Register a new domain with a given time period.
Params:
domain
: string
- A single domainperiod
: string|number
- One of Epik.PERIODSUsage Example:
let data = await EpikClient.domains.register('giraffecookie.com', Epik.PERIODS.ONE_YEAR);
domains.setHostRecords()
Set up new host records. By using this function, all existing host records will be removed.
Params:
domain
: string
- A single domainhostRecordGroups
: array
- Array of host record groupshostRecordGroups[n]
: object
- Each item of a hostRecordGroup
hostRecordGroups[n].HOST
: string
- HosthostRecordGroups[n].TYPE
: string
- A set of predefined values (host record types). For example: A
, MX
, CNAME
, etchostRecordGroups[n].AUX
: string|number
hostRecordGroups[n].DATA
: string
- Data plays variable role for variable host record types. E.g. it is IP
for A
record.hostRecordGroups[n].TTL
: string|number
- Time to Live valueUsage Example:
let data = await EpikClient.domains.setHostRecords('giraffecookie.com', [
{
HOST: 'giraffecookie.com',
TYPE: 'CNAME',
DATA: 'giraffecookie.com',
TTL: '300'
},
{
HOST: 'giraffecookie.com',
TYPE: 'CNAME',
DATA: 'thegiraffecookie.com',
TTL: '300'
},
]);
Find me on Gab: @markmiscavage.
Tweet at me: @markmiscavage.
MIT License
Copyright (c) 2019 Mark Miscavage
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A Node.js wrapper for the Epik.com API.
The npm package epik.com receives a total of 0 weekly downloads. As such, epik.com popularity was classified as not popular.
We found that epik.com demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.